From 45b266b3ab65ca52182bd720a0c68d9c03525320 Mon Sep 17 00:00:00 2001 From: ntalluri Date: Fri, 9 Feb 2024 14:33:33 -0600 Subject: [PATCH] added single pathway test --- test/ml/input/test-data-s4/s4.txt | 1 + test/ml/test_ml.py | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 test/ml/input/test-data-s4/s4.txt diff --git a/test/ml/input/test-data-s4/s4.txt b/test/ml/input/test-data-s4/s4.txt new file mode 100644 index 00000000..30397283 --- /dev/null +++ b/test/ml/input/test-data-s4/s4.txt @@ -0,0 +1 @@ +L M 1 U diff --git a/test/ml/test_ml.py b/test/ml/test_ml.py index 7c2ca77c..f60de43a 100644 --- a/test/ml/test_ml.py +++ b/test/ml/test_ml.py @@ -71,3 +71,7 @@ def test_ensemble_network(self): def test_summarize_networks_empty(self): with pytest.raises(ValueError): ml.summarize_networks([INPUT_DIR + 'test-data-empty/empty.txt']) + + def test_summarize_networks_single_pathway(self): + with pytest.raises(ValueError): + ml.summarize_networks([INPUT_DIR + 'test-data-s4/s4.txt'])