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}}
{{/description}}
# uncomment below to test the property
#expect_equal(model.instance$`{{{name}}}`, "EXPECTED_RESULT")
})
{{/vars}}
{{/isEnum}}
{{/model}}
{{/models}}