mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-22 17:40:55 +00:00
skip test for enum model, update readme (#6936)
This commit is contained in:
parent
cef1bec466
commit
02a8207b91
@ -35,7 +35,7 @@ install.packages("base64enc")
|
||||
git clone https://{{gitHost}}/{{{gitUserId}}}/{{{gitRepoId}}}
|
||||
cd {{{gitRepoId}}}
|
||||
R CMD build .
|
||||
R CMD check {{{packageName}}}_{{{packageVersion}}}.tar.gz
|
||||
R CMD check {{{packageName}}}_{{{packageVersion}}}.tar.gz --no-manual
|
||||
R CMD INSTALL {{{packageName}}}_{{{packageVersion}}}.tar.gz
|
||||
```
|
||||
|
||||
|
@ -2,12 +2,15 @@
|
||||
# Please update as you see appropriate
|
||||
|
||||
context("Test {{{classname}}}")
|
||||
{{#models}}
|
||||
{{#model}}
|
||||
{{^isEnum}}
|
||||
{{#vars}}
|
||||
{{#-first}}
|
||||
|
||||
model.instance <- {{{classname}}}$new()
|
||||
|
||||
{{#models}}
|
||||
{{#model}}
|
||||
{{#vars}}
|
||||
{{/-first}}
|
||||
test_that("{{{name}}}", {
|
||||
# tests for the property `{{{name}}}` ({{dataType}})
|
||||
{{#description}}
|
||||
@ -19,5 +22,6 @@ test_that("{{{name}}}", {
|
||||
})
|
||||
|
||||
{{/vars}}
|
||||
{{/isEnum}}
|
||||
{{/model}}
|
||||
{{/models}}
|
||||
|
@ -27,7 +27,7 @@ install.packages("base64enc")
|
||||
git clone https://github.com/GIT_USER_ID/GIT_REPO_ID
|
||||
cd GIT_REPO_ID
|
||||
R CMD build .
|
||||
R CMD check petstore_1.0.0.tar.gz
|
||||
R CMD check petstore_1.0.0.tar.gz --no-manual
|
||||
R CMD INSTALL petstore_1.0.0.tar.gz
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user