r.model_test.mustache Maven / Gradle / Ivy
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
context("Test {{{classname}}}")
{{#models}}
{{#model}}
{{^isEnum}}
{{#vars}}
{{#-first}}
model_instance <- {{{classname}}}$new()
{{/-first}}
test_that("{{{name}}}", {
# tests for the property `{{{name}}}` ({{dataType}})
{{#description}}
# {{.}}
{{/description}}
# uncomment below to test the property
#expect_equal(model.instance$`{{{name}}}`, "EXPECTED_RESULT")
})
{{/vars}}
{{/isEnum}}
{{/model}}
{{/models}}