From 8403dca88a12a6811be40116f99279ef846b01f5 Mon Sep 17 00:00:00 2001 From: santibeta <21-10071@usb.ve> Date: Mon, 15 Jun 2026 13:33:15 -0400 Subject: [PATCH] Add test to verify Lesion label is unified to Lung Lesion --- tests/test_dataloaders.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/test_dataloaders.py b/tests/test_dataloaders.py index 41ba5e5..3d45494 100644 --- a/tests/test_dataloaders.py +++ b/tests/test_dataloaders.py @@ -194,4 +194,10 @@ def test_errors_when_doing_things_that_should_not_work(): with pytest.raises(NotImplementedError) as excinfo: merged_dataset.pathologies = None - \ No newline at end of file + +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."