SNEWS2 / snewpy

A Python package for working with supernova neutrinos
https://snewpy.readthedocs.io
BSD 3-Clause "New" or "Revised" License
26 stars 19 forks source link

Sheshuk/use test labels #292

Open Sheshuk opened 10 months ago

Sheshuk commented 10 months ago

Closes #256

Run the tests only if the given label is present. Labels are: SNOwGLoBES, ModelsRegistry, SupernovaModel - to test separate parts of the package. Adding label test:All forces a run of all existing tests (remove and add label again to repeat).

Note: Probably we should revise our tests. For example we don't need to run the tests on ALL models. I've introduced pytest.mark.base for testing basic functionality, so maybe we can mark couple of lightweight models as base.

Also still a lot of time is taken by downloading the SNEWPY in the first place, so I think we need to remove the model files from this repository.