diff --git a/tests/test_metadata.py b/tests/test_metadata.py index 9a9f554..223925a 100644 --- a/tests/test_metadata.py +++ b/tests/test_metadata.py @@ -22,15 +22,13 @@ EXPECTED = json.load(f) DATA = Path(__file__).parent / "data" +EXPECTED = {k: v for k, v in EXPECTED.items() if not _util.is_legacy(DATA / k)} @pytest.mark.parametrize("path", EXPECTED, ids=lambda x: f'{x}_{EXPECTED[x]["ver"]}') def test_metadata_integrity(path: str) -> None: """Test that the current API matches the expected output for sample data.""" - target = Path("tests/data") / path - if _util.is_legacy(target): - pytest.skip() - name, stats = get_nd2_stats(target) + name, stats = get_nd2_stats(DATA / path) # normalize serizalized stuff stats = json.loads(json.dumps(stats, default=str)) diff --git a/tests/test_reader.py b/tests/test_reader.py index d64e816..c03729b 100644 --- a/tests/test_reader.py +++ b/tests/test_reader.py @@ -1,5 +1,4 @@ import json -import os import pickle import sys from pathlib import Path @@ -53,7 +52,6 @@ def test_dask_closed(single_nd2): assert isinstance(dsk.compute(), np.ndarray) -@pytest.mark.skipif(bool(os.getenv("CIBUILDWHEEL")), reason="slow") def test_full_read(new_nd2): with ND2File(new_nd2) as nd: if new_nd2.stat().st_size > 500_000_000: @@ -74,7 +72,6 @@ def test_dask_legacy(old_nd2): assert arr.shape == nd.shape[-2:] -@pytest.mark.skipif(bool(os.getenv("CIBUILDWHEEL")), reason="slow") def test_full_read_legacy(old_nd2): with ND2File(old_nd2) as nd: if (old_nd2.stat().st_size > 500_000) and "--runslow" not in sys.argv: