aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPjotr Prins2024-03-24 09:36:33 +0100
committerFrederick Muriuki Muriithi2024-09-12 07:20:32 -0500
commit1c4286ec769bdea47c7950b905d78232366af1fe (patch)
tree79e4bf6a77cc77202eee662e573f7a477b02e904 /tests
parent090e5e0c41db2068d7e55684e320b287adc34bab (diff)
downloadgenenetwork3-1c4286ec769bdea47c7950b905d78232366af1fe.tar.gz
Change behavior of do_paths_exist to actually throw useful error
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/test_gemma.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/integration/test_gemma.py b/tests/integration/test_gemma.py
index 79ddaca..53a1596 100644
--- a/tests/integration/test_gemma.py
+++ b/tests/integration/test_gemma.py
@@ -60,7 +60,7 @@ class GemmaAPITest(unittest.TestCase):
@mock.patch("gn3.api.gemma.queue_cmd")
@mock.patch("gn3.computations.gemma.get_hash_of_files")
@mock.patch("gn3.api.gemma.jsonfile_to_dict")
- @mock.patch("gn3.api.gemma.do_paths_exist")
+ @mock.patch("gn3.api.gemma.assert_paths_exist")
@mock.patch("gn3.api.gemma.redis.Redis")
@mock.patch("gn3.api.gemma.cache_ipfs_file")
def test_k_compute(self, mock_ipfs_cache,
@@ -103,7 +103,7 @@ class GemmaAPITest(unittest.TestCase):
@mock.patch("gn3.api.gemma.queue_cmd")
@mock.patch("gn3.computations.gemma.get_hash_of_files")
@mock.patch("gn3.api.gemma.jsonfile_to_dict")
- @mock.patch("gn3.api.gemma.do_paths_exist")
+ @mock.patch("gn3.api.gemma.assert_paths_exist")
@mock.patch("gn3.api.gemma.redis.Redis")
@mock.patch("gn3.api.gemma.cache_ipfs_file")
def test_k_compute_loco(self, mock_ipfs_cache,
@@ -147,7 +147,7 @@ class GemmaAPITest(unittest.TestCase):
@mock.patch("gn3.api.gemma.queue_cmd")
@mock.patch("gn3.computations.gemma.get_hash_of_files")
@mock.patch("gn3.api.gemma.jsonfile_to_dict")
- @mock.patch("gn3.api.gemma.do_paths_exist")
+ @mock.patch("gn3.api.gemma.assert_paths_exist")
@mock.patch("gn3.api.gemma.redis.Redis")
@mock.patch("gn3.api.gemma.cache_ipfs_file")
def test_gwa_compute(self, mock_ipfs_cache,
@@ -198,7 +198,7 @@ class GemmaAPITest(unittest.TestCase):
@mock.patch("gn3.api.gemma.queue_cmd")
@mock.patch("gn3.computations.gemma.get_hash_of_files")
@mock.patch("gn3.api.gemma.jsonfile_to_dict")
- @mock.patch("gn3.api.gemma.do_paths_exist")
+ @mock.patch("gn3.api.gemma.assert_paths_exist")
@mock.patch("gn3.api.gemma.redis.Redis")
@mock.patch("gn3.api.gemma.cache_ipfs_file")
def test_gwa_compute_with_covars(self, mock_ipfs_cache,
@@ -252,7 +252,7 @@ class GemmaAPITest(unittest.TestCase):
@mock.patch("gn3.api.gemma.queue_cmd")
@mock.patch("gn3.computations.gemma.get_hash_of_files")
@mock.patch("gn3.api.gemma.jsonfile_to_dict")
- @mock.patch("gn3.api.gemma.do_paths_exist")
+ @mock.patch("gn3.api.gemma.assert_paths_exist")
@mock.patch("gn3.api.gemma.redis.Redis")
@mock.patch("gn3.api.gemma.cache_ipfs_file")
def test_gwa_compute_with_loco_only(self, mock_ipfs_cache,
@@ -305,7 +305,7 @@ class GemmaAPITest(unittest.TestCase):
@mock.patch("gn3.api.gemma.queue_cmd")
@mock.patch("gn3.computations.gemma.get_hash_of_files")
@mock.patch("gn3.api.gemma.jsonfile_to_dict")
- @mock.patch("gn3.api.gemma.do_paths_exist")
+ @mock.patch("gn3.api.gemma.assert_paths_exist")
@mock.patch("gn3.api.gemma.redis.Redis")
@mock.patch("gn3.api.gemma.cache_ipfs_file")
def test_gwa_compute_with_loco_covars(self, mock_ipfs_cache,
@@ -360,7 +360,7 @@ class GemmaAPITest(unittest.TestCase):
@mock.patch("gn3.api.gemma.queue_cmd")
@mock.patch("gn3.computations.gemma.get_hash_of_files")
@mock.patch("gn3.api.gemma.jsonfile_to_dict")
- @mock.patch("gn3.api.gemma.do_paths_exist")
+ @mock.patch("gn3.api.gemma.assert_paths_exist")
@mock.patch("gn3.api.gemma.redis.Redis")
@mock.patch("gn3.api.gemma.cache_ipfs_file")
def test_k_gwa_compute_without_loco_covars(self, mock_ipfs_cache,
@@ -416,7 +416,7 @@ class GemmaAPITest(unittest.TestCase):
@mock.patch("gn3.api.gemma.queue_cmd")
@mock.patch("gn3.computations.gemma.get_hash_of_files")
@mock.patch("gn3.api.gemma.jsonfile_to_dict")
- @mock.patch("gn3.api.gemma.do_paths_exist")
+ @mock.patch("gn3.api.gemma.assert_paths_exist")
@mock.patch("gn3.api.gemma.redis.Redis")
@mock.patch("gn3.api.gemma.cache_ipfs_file")
def test_k_gwa_compute_with_covars_only(self, mock_ipfs_cache,
@@ -481,7 +481,7 @@ class GemmaAPITest(unittest.TestCase):
@mock.patch("gn3.api.gemma.queue_cmd")
@mock.patch("gn3.computations.gemma.get_hash_of_files")
@mock.patch("gn3.api.gemma.jsonfile_to_dict")
- @mock.patch("gn3.api.gemma.do_paths_exist")
+ @mock.patch("gn3.api.gemma.assert_paths_exist")
@mock.patch("gn3.api.gemma.redis.Redis")
@mock.patch("gn3.api.gemma.cache_ipfs_file")
def test_k_gwa_compute_with_loco_only(self, mock_ipfs_cache,
@@ -547,7 +547,7 @@ class GemmaAPITest(unittest.TestCase):
@mock.patch("gn3.api.gemma.queue_cmd")
@mock.patch("gn3.computations.gemma.get_hash_of_files")
@mock.patch("gn3.api.gemma.jsonfile_to_dict")
- @mock.patch("gn3.api.gemma.do_paths_exist")
+ @mock.patch("gn3.api.gemma.assert_paths_exist")
@mock.patch("gn3.api.gemma.redis.Redis")
@mock.patch("gn3.api.gemma.cache_ipfs_file")
def test_k_gwa_compute_with_loco_and_covar(self, mock_ipfs_cache,