Skip to content
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 56 commits into from
May 18, 2024
Merged

Fix/pytest migration #176

merged 56 commits into from
May 18, 2024

Conversation

ssato
Copy link
Owner

@ssato ssato commented May 18, 2024

No description provided.

ssato added 30 commits April 22, 2024 00:51
…ttest to pytest

Migrate test cases for anyconfig.api.single_load from unittest to pytest
and relocate its test data.
ssato added 26 commits May 5, 2024 00:16
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.
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
@ssato ssato merged commit 87bbf34 into next May 18, 2024
14 checks passed
@ssato ssato deleted the fix/pytest-migration branch May 18, 2024 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant