Skip to content

Commit

Permalink
test: minor skip updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Jul 15, 2023
1 parent 580ed48 commit d6ec52f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 2 additions & 4 deletions tests/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
3 changes: 0 additions & 3 deletions tests/test_reader.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import json
import os
import pickle
import sys
from pathlib import Path
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit d6ec52f

Please sign in to comment.