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

Typo or error in pytest markers? #51

Closed
kyleaoman opened this issue Feb 19, 2024 · 2 comments
Closed

Typo or error in pytest markers? #51

kyleaoman opened this issue Feb 19, 2024 · 2 comments

Comments

@kyleaoman
Copy link

Pytest reports the following warning:

tests/comoving/test_slicer_writer_and_reader.py:4
  /home/koman/code/paicos/tests/comoving/test_slicer_writer_and_reader.py:4: PytestUnknownMarkWarning: Unknown pytest.mark.order - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.order(1)
@tberlok
Copy link
Owner

tberlok commented Feb 29, 2024

This marking of the ordering of tests requires the pytest-order package:

https://pypi.org/project/pytest-order/

Can you please check that you have it installed?

pip install pytest-order

@kyleaoman
Copy link
Author

Ah I see it in the requirements.txt.

Perhaps consider specifying any optional requirements in setup.py, e.g. so that pip install paicos[dev] installs dependencies for the test suite, and then pointing to that in contribution guidelines?

@tberlok tberlok closed this as completed Apr 10, 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

No branches or pull requests

2 participants