diff --git a/generate/templates/api_test.mustache b/generate/templates/api_test.mustache index fde5338..5248370 100644 --- a/generate/templates/api_test.mustache +++ b/generate/templates/api_test.mustache @@ -87,12 +87,14 @@ class {{#operations}}Test{{classname}}(unittest.IsolatedAsyncioTestCase): {{^isPrimitiveType}} {{#content}} spec_filepath = os.environ['OPENAPI_SPEC_PATH'] + print('spec_filepath', spec_filepath) with open(spec_filepath) as file: openapiSpecJson = file.read() method = "{{httpMethod}}".replace("Http", "").lower() jsonContent = json.loads(openapiSpecJson) jsonContent = jsonContent["paths"]["{{path}}"][method]["requestBody"]["content"]["application/json"] + print('jsonContent: ',jsonContent) {{paramName}}: {{{dataType}}} = None # {{complexType}} if "example" in jsonContent: