-
Notifications
You must be signed in to change notification settings - Fork 31
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
Fix/pytest migration #176
Merged
Merged
Fix/pytest migration #176
Conversation
This file contains 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
…ly, and its test cases
…ttest to pytest Migrate test cases for anyconfig.api.single_load from unittest to pytest and relocate its test data.
Add new simplified test data loader to use with pytest, and replace existing test data collector and loader with this. - tests/common/tdc.py: Add new simplified test data loading function, test_load_data_for_testfile to load test data for given test file path automatically, along with a utility function to get test ids to use with pytest.mark.parametrize. The precdecessor, test_collect_for, and related function, get_mod_target_pair_from_path, were deprecated, replaced with new ones and removed. - tests/common/__init__.py: Export some constants and functions added. - tests/common/test_tdc.py: Add test cases for new ones mentioned.
…e pathlib.Path.parts, zip_longest)
Migrate from unittest.Testcase to pytest test cases with pytest.mark.parametrize, and switch to new test data loader to simplify test cases. - tests/api/multi_load/common.py: Obsoleted and deleted old test data collector based on unittest.TestCase - tests/api/multi_load/*_{basics,multi_types,query,schema,template}.py: switch to use new test data collector - other files in tests/api/multi_load/: Obsoleted and removed - tests/res/1/api/multi_load/**/*.*: Added/moved test data for anyconfig.api.multi_load
… with new data loader
…est with new test loader
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.