-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Python client tests fail (syntax errors) #5377
Labels
Comments
ghost
added
the
Issue: Bug
label
Feb 19, 2020
I'm faced the same problem. It looks like generated tests don't use model's arguments name which my be different than defined in a spec. |
palnabarun
added a commit
to palnabarun/python
that referenced
this issue
Jun 22, 2020
Reference: OpenAPITools/openapi-generator#5377 Signed-off-by: Nabarun Pal <[email protected]>
palnabarun
added a commit
to palnabarun/python
that referenced
this issue
Jun 22, 2020
Reference: OpenAPITools/openapi-generator#5377 Signed-off-by: Nabarun Pal <[email protected]>
palnabarun
added a commit
to palnabarun/python
that referenced
this issue
Jul 16, 2020
Reference: OpenAPITools/openapi-generator#5377 Signed-off-by: Nabarun Pal <[email protected]>
5 tasks
bh717
pushed a commit
to bh717/python-dapp
that referenced
this issue
Apr 1, 2024
Reference: OpenAPITools/openapi-generator#5377 Signed-off-by: Nabarun Pal <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report Checklist
Description
After generating a python client for peertube, the tests don't run due to syntax errors:
openapi-generator version
@openapitools/openapi-generator-cli^1.0.10-4.2.3
OpenAPI declaration file content or url
https://framagit.org/LoveIsGrief/PeerTube/blob/44d4ee4fcb7cf8beebac73f85693c09919b91e66/support/doc/api/openapi.yaml
Command line used for generation
It's run in a bash script by a CI that calls the npm package. bash script | npm package (@openapitools/openapi-generator-cli^1.0.10-4.2.3) (line in yarn.lock)
the resulting command should be
npx openapi-generator generate
-i support/doc/api/openapi.yaml
-c "support/openapi/python/def.yaml"
-t "support/openapi/python"
-g "python"
--git-host "framagit"
--git-user-id "peertube-test"
--git-repo-id "apis/python"
-o "dist/api/python"
Steps to reproduce
requirements.txt
andtest-requirements.txt
pytest
Related issues/PRs
#1747 had similar issues but the output was ignored? I'm not entirely sure.
Suggest a fix
Update the template to use the correct fieldnames. They are correctly generated in the model, but not in the test file.
The text was updated successfully, but these errors were encountered: