forked from openapi-generators/openapi-python-client
-
Notifications
You must be signed in to change notification settings - Fork 1
add tests against generated code #217
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
0928032
add tests that verify actual behavior of generated code
eli-bl f324f26
documentation
eli-bl 6b15783
make assertion error messages work correctly
eli-bl b7d34a7
misc improvements, test error conditions, remove redundant unit tests
eli-bl 53fca35
misc improvements + remove redundant unit tests
eli-bl cd2ccb0
restore some missing test coverage
eli-bl 064780a
add tests against generated code
eli-bl 7a0e2b4
generated code tests for discriminators
eli-bl 91640f7
Merge branch '2.x' into generated-code-tests-bl
eli-bl 91abc40
rm test file, rm Python 3.8
eli-bl f0f105c
run new tests
eli-bl 79c322d
don't run tests in 3.8 because type hints don't work the same
eli-bl d915267
make sure all tests get run
eli-bl 87673c8
cover another error case
eli-bl e4e63cb
cover another error case
eli-bl 3a0c36c
reorganize
eli-bl 36866eb
reorganize
eli-bl eabbf2b
rm test file
eli-bl 6241f44
more discriminator tests
eli-bl 718d236
rm unused
eli-bl 80c8333
reorganize
eli-bl aee95ab
Merge branch 'live-generated-code-tests' into generated-code-tests-bl
eli-bl 1c59c6c
coverage
eli-bl abe9c4d
Merge branch 'live-generated-code-tests' into generated-code-tests-bl
eli-bl aa63390
docs
eli-bl 640d1d0
Merge branch 'live-generated-code-tests' into generated-code-tests-bl
eli-bl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
""" Generate a complete client and verify that it is correct """ | ||
import pytest | ||
|
||
pytest.register_assert_rewrite("end_to_end_tests.end_to_end_test_helpers") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here and in the next file, and in
golden_record
, I've removed some schemas that no longer need to be in the golden-record-based tests. There are now better equivalent tests intest_unions.py
.