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

unittests.yml: python setup.py install is deprecated #760

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Mar 26, 2024

https://packaging.python.org/en/latest/discussions/setup-py-deprecated

Let's try pip install --editable . instead. That works perfectly.


Use pytest to run more tests and make test discovery automatic.

Rename the test files because pytest discovery will autofind tests/test_*.py files.

% pytest --ignore=tests/test_islandora.py \
         --ignore=tests/test_islandora_check.py \
         --ignore=tests/test_islandora_hooks.py \
         --ignore=tests/test_islandora_paged_content.py

============================= test session starts ==============================
platform linux -- Python 3.11.8, pytest-8.1.1, pluggy-1.4.0
rootdir: /home/runner/work/islandora_workbench/islandora_workbench
collected 152 items

tests/test_csv_id_to_node_id_map.py .                                    [  0%]
tests/test_field_values.py ..                                            [  1%]
tests/test_fields.py ................................................... [ 35%]
................................                                         [ 56%]
tests/test_unit.py ..................................................... [ 91%]
......                                                                   [ 95%]
tests/test_unit_workbench_config.py .......                              [100%]
======================= 152 passed, 6 warnings in 1.20s ========================

@cclauss cclauss marked this pull request as ready for review March 26, 2024 18:41
@cclauss cclauss changed the title unittests.yml: python setup.py install is deprecated unittests.yml: python setup.py install is deprecated Mar 26, 2024
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