All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lua.api_test.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
{{> partial_header}}
--[[
Unit tests for {{{packageName}}}.api.{{{classname}}}
Automatically generated by openapi-generator (https://openapi-generator.tech)
Please update as you see appropriate
]]
{{#operations}}
describe("{{classname}}", function()
  local {{{packageName}}}_{{{classname}}} = require "{{{packageName}}}.api.{{{classname}}}"
{{#operation}}
  {{#models}}
  [[-- import all models --]]
  {{#model}}
  local {{{packageName}}}_{{{classname}}} = require "{{{packageName}}}.model.{{{classname}}}"
  {{/model}}
  {{/models}}
  -- unit tests for {{operationId}}
  describe("{{{operationId}}} test", function()
    it("should work", function()
      -- TODO assertion here: http://olivinelabs.com/busted/#asserts
    end)
  end)

{{/operation}}
end)
{{/operations}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy