Skip to content

Commit

Permalink
♻️ refactor test_wsireader.py
Browse files Browse the repository at this point in the history
  • Loading branch information
blaginin committed Jul 19, 2023
1 parent 7123370 commit 4818c49
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_wsireader.py
Original file line number Diff line number Diff line change
Expand Up @@ -2331,6 +2331,10 @@ def test_ngff_inconsistent_multiscales_versions(tmp_path, caplog, remote_sample)
],
)
def wsi(request, remote_sample):
"""WSIReader instance fixture.
Reader type varies as fixture is parametrized.
"""
reader_class = request.param.pop("reader_class")
sample = remote_sample(request.param.pop("sample_key"))

Expand All @@ -2352,7 +2356,7 @@ def wsi(request, remote_sample):
def test_base_open(wsi):
"""Checks that WSIReader.open detects the type correctly."""
new_wsi = WSIReader.open(wsi.input_path)
assert type(new_wsi) == type(wsi)
assert type(new_wsi) is type(wsi)


def test_wsimeta_attrs(wsi):
Expand Down

0 comments on commit 4818c49

Please sign in to comment.