Skip to content

Commit

Permalink
select_resources test also passes
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Sep 26, 2024
1 parent 8214f59 commit 0a871b4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions xnat_ingest/tests/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,10 @@ def test_session_select_resources(
resources = list(resources_iter)

assert len(resources) == 5 # 6
ids, descs, resource_names, scans = zip(*resources)
assert set(ids) == set(("1", "2", "4", "602")) # , "603"))
assert set(descs) == set(
assert set([r.scan.id for r in resources]) == set(
("1", "2", "4", "602")
) # , "603"))
assert set([r.scan.type for r in resources]) == set(
[
"AC CT 30 SWB HD_FoV",
"PET SWB 8MIN",
Expand All @@ -219,10 +220,10 @@ def test_session_select_resources(
# "603",
]
)
assert set(resource_names) == set(
assert set([r.name for r in resources]) == set(
("DICOM", "PET_LISTMODE", "PET_COUNTRATE")
) # , "PET_EM_SINO"
assert set(type(s) for s in scans) == set(
assert set([r.datatype for r in resources]) == set(
[
DicomSeries,
Vnd_Siemens_Biograph128Vision_Vr20b_PetListMode,
Expand Down

0 comments on commit 0a871b4

Please sign in to comment.