Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion tests/test_dataloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,10 @@ def test_errors_when_doing_things_that_should_not_work():

with pytest.raises(NotImplementedError) as excinfo:
merged_dataset.pathologies = None


def test_lesion_label_unified():
"""Ensure 'Lung Lesion' is used instead of raw 'Lesion' in default_pathologies"""
assert "Lesion" not in xrv.datasets.default_pathologies, \
"Raw 'Lesion' found in default_pathologies. Use 'Lung Lesion' for consistency."
assert "Lung Lesion" in xrv.datasets.default_pathologies, \
"'Lung Lesion' missing from default_pathologies."