From 3af24151b6f11b14c851269928f3789679cb713a Mon Sep 17 00:00:00 2001 From: Jeremy Arbesfeld Date: Fri, 24 Jan 2025 16:30:49 -0500 Subject: [PATCH] Remove fusion caller model tests --- tests/test_fusion_caller_models.py | 93 ------------------------------ 1 file changed, 93 deletions(-) delete mode 100644 tests/test_fusion_caller_models.py diff --git a/tests/test_fusion_caller_models.py b/tests/test_fusion_caller_models.py deleted file mode 100644 index 4f46470..0000000 --- a/tests/test_fusion_caller_models.py +++ /dev/null @@ -1,93 +0,0 @@ -"""Module for testing fusion caller classes""" - -from pathlib import Path - -import pytest - -from fusor.fusion_caller_models import ( - Arriba, - Cicero, - EnFusion, - FusionCatcher, - Genie, - STARFusion, -) -from fusor.harvester import JAFFAHarvester - - -def test_get_jaffa_records(fixture_data_dir): - """Test that get_jaffa_records works correctly""" - path = Path(fixture_data_dir / "jaffa_results.csv") - # records = JAFFA.load_records(path) - records = JAFFAHarvester.load_records(path) - assert len(records) == 491 - - path = Path(fixture_data_dir / "jaffa_resultss.csv") - with pytest.raises(ValueError, match=f"{path} does not exist"): - assert JAFFAHarvester.load_records(path) - - -def test_get_star_fusion_records(fixture_data_dir): - """Test that get_star_fusion_records works correctly""" - path = Path(fixture_data_dir / "star-fusion.fusion_predictions.abridged.tsv") - records = STARFusion.load_records(path) - assert len(records) == 37 - - path = Path(fixture_data_dir / "star-fusion.fusion_predictions.abridged.tsvs") - with pytest.raises(ValueError, match=f"{path} does not exist"): - assert STARFusion.load_records(path) - - -def test_get_fusion_catcher_records(fixture_data_dir): - """Test that get_fusion_catcher_records works correctly""" - path = Path(fixture_data_dir / "final-list_candidate-fusion-genes.txt") - fusions_list = FusionCatcher.load_records(path) - assert len(fusions_list) == 355 - - path = Path(fixture_data_dir / "final-list_candidate-fusion-genes.txts") - with pytest.raises(ValueError, match=f"{path} does not exist"): - assert FusionCatcher.load_records(path) - - -def test_get_arriba_records(fixture_data_dir): - """Test that get_arriba_records works correctly""" - path = Path(fixture_data_dir / "fusions_arriba_test.tsv") - fusions_list = Arriba.load_records(path) - assert len(fusions_list) == 1 - - path = Path(fixture_data_dir / "fusionsd_arriba_test.tsv") - with pytest.raises(ValueError, match=f"{path} does not exist"): - assert Arriba.load_records(path) - - -def test_get_cicero_records(fixture_data_dir): - """Test that get_cicero_records works correctly""" - path = Path(fixture_data_dir / "annotated.fusion.txt") - fusions_list = Cicero.load_records(path) - assert len(fusions_list) == 1 - - path = Path(fixture_data_dir / "annnotated.fusion.txt") - with pytest.raises(ValueError, match=f"{path} does not exist"): - assert Cicero.load_records(path) - - -def test_get_enfusion_records(fixture_data_dir): - """Test that get_enfusion_records works correctly""" - path = Path(fixture_data_dir / "enfusion_test.csv") - fusions_list = EnFusion.load_records(path) - assert len(fusions_list) == 1 - - path = Path(fixture_data_dir / "enfusions_test.csv") - with pytest.raises(ValueError, match=f"{path} does not exist"): - assert EnFusion.load_records(path) - - -def test_get_genie_records(fixture_data_dir): - """Test that get_genie_records works correctly""" - path = Path(fixture_data_dir / "genie_test.txt") - fusions_list = Genie.load_records(path) - assert len(fusions_list) == 1 - - path = Path(fixture_data_dir / "genie_tests.txt") - with pytest.raises(ValueError, match=f"{path} does not exist"): - assert Genie.load_records(path)