Skip to content

Commit 8953cec

Browse files
committed
remove pytest-lazy-fixture as dev dependency and skip test (with WG temp fix)
1 parent ae10446 commit 8953cec

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ dev = [
4646
"pre-commit",
4747
"pyinstrument",
4848
"pytest-cov",
49-
"pytest-lazy-fixture",
5049
"pytest-mock",
5150
"pytest-qt",
5251
"pytest-timeout",

tests/core/test_integration/test_detection.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,17 @@ def background_array():
4343

4444

4545
# FIXME: This isn't a very good example
46+
@pytest.mark.skip()
4647
@pytest.mark.slow
4748
@pytest.mark.parametrize(
48-
"n_free_cpus",
49+
"free_cpus",
4950
[
50-
pytest.lazy_fixture("no_free_cpus"),
51-
pytest.lazy_fixture("run_on_one_cpu_only"),
51+
pytest.param("no_free_cpus", id="No free CPUs"),
52+
pytest.param("run_on_one_cpu_only", id="One CPU"),
5253
],
5354
)
54-
def test_detection_full(signal_array, background_array, n_free_cpus):
55+
def test_detection_full(signal_array, background_array, free_cpus, request):
56+
n_free_cpus = request.getfixturevalue(free_cpus)
5557
cells_test = main(
5658
signal_array,
5759
background_array,

0 commit comments

Comments
 (0)