teamtomo / imodmodel

IMOD model files as pandas dataframes in Python
https://teamtomo.org/imodmodel/
Other
9 stars 7 forks source link

Tests are broken because pytest>=8.0.0 breaks pytest-lazy-fixture #11

Closed uermel closed 5 months ago

uermel commented 5 months ago

pytest==8.0.0 was released after the last test-and-deploy. It is incompatible with pytest-lazy-fixture (see https://github.com/TvoroG/pytest-lazy-fixture/issues/65), causing tests to fail.

To reproduce:

conda create -n imodmodel_test python==3.11
conda activate imodmodel_test
git clone https://github.com/teamtomo/imodmodel.git
cd imodmodel
pip install ".[dev]"
pytest

Fails with:

E   pluggy.PluggyTeardownRaisedWarning: A plugin raised an exception during an old-style hookwrapper teardown.
E   Plugin: lazy-fixture, Hook: pytest_generate_tests
E   AttributeError: 'CallSpec2' object has no attribute 'funcargs'
E   For more information see https://pluggy.readthedocs.io/en/stable/api_reference.html#pluggy.PluggyTeardownRaisedWarning

As that plugin doesn't seem to be in development anymore it would likely be good to adopt any of the workarounds mentioned in that issue to fix the tests.