Closed Luthaf closed 1 year ago
From the latest CI run with pytest:
tests/test_sample_simple_fps.py::TestFPS::test_threshold
tests/test_voronoi_fps.py::TestFPS::test_threshold
tests/test_voronoi_fps.py::TestVoronoiFPS::test_threshold
/home/runner/work/scikit-matter/scikit-matter/src/skmatter/_selection.py:211: UserWarning: Score threshold of 0.4 reached.Terminating search at 6 / 10.
warnings.warn(
So it seems like the same warning was sent by multiple tests, throwing me off initially.
From https://github.com/lab-cosmo/scikit-cosmo/runs/6552874752?check_suite_focus=true
The
UserWarning: Score threshold of 0.4 reached.Terminating search at 6 / 10.
should only appear once, but is there three times.Changing https://github.com/lab-cosmo/scikit-cosmo/blob/f433e28a8e5ff13f2dd1aa9a9f2dd2fc3f606218/pyproject.toml#L19 to
coverage run -m unittest discover -p "test_sample_simple_fps.py"
makes the test run only once, so there might be some strange interaction between unittest, discover and coverage.