tberlok / paicos

An object-oriented Python package for analysis of (cosmological) simulations performed with Arepo
GNU General Public License v3.0
10 stars 3 forks source link

Typo or error in pytest markers? #51

Closed kyleaoman closed 5 months ago

kyleaoman commented 7 months ago

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 commented 6 months ago

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 commented 6 months ago

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?