Skip to content

Commit

Permalink
pytest discovery will autofind tests/test_*.py files
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Mar 26, 2024
1 parent 0e56f04 commit 92a27c0
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,15 @@ jobs:
python tests/csv_id_to_node_id_map_tests.py
- run: |
pip install pytest
pytest tests || true
# pytest discovery will autofind tests/test_*.py files...
# https://docs.pytest.org/en/stable/explanation/goodpractices.html#conventions-for-python-test-discovery
mv csv_id_to_node_id_map_tests.py test_csv_id_to_node_id_map.py
mv field_tests.py test_fields.py
mv field_tests_values.py test_field_values.py
mv islandora_tests.py test_islandora.py
mv islandora_tests_check.py test_islandora_check.py
mv islandora_tests_hooks.py test_islandora_hooks.py
mv islandora_tests_paged_content.py test_islandora_paged_content.py
mv unit_tests.py test_unit.py
mv unit_tests_workbench_config.py test_unit_workbench_config.py
pytest tests

0 comments on commit 92a27c0

Please sign in to comment.