Bug Report Checklist
Description
The current behaviour is that tests are generated at the root directory even if pythonSrcRoot has been specified. At the very least the tests folder (and the files therein) should be generated under the pythonSrcRoot. This makes even more sense if you're also including pythonSrcRoot in the import namespace.
openapi-generator version
5.1.1
Suggest a fix
The fix here would be to modify the testPackage variable based on a flag if pythonSrcRoot has been specified to include the pythonSrcRoot value.
Bug Report Checklist
Description
The current behaviour is that tests are generated at the root directory even if
pythonSrcRoothas been specified. At the very least thetestsfolder (and the files therein) should be generated under thepythonSrcRoot. This makes even more sense if you're also includingpythonSrcRootin the import namespace.openapi-generator version
5.1.1
Suggest a fix
The fix here would be to modify the
testPackagevariable based on a flag ifpythonSrcRoothas been specified to include thepythonSrcRootvalue.