diff options
author | BonfaceKilz | 2022-06-21 15:36:09 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-06-21 15:36:09 +0300 |
commit | b4e81dd5cba130f0a2f47771bb2fd4d289ef745d (patch) | |
tree | 8896ee2d8cf8960e7b75a53b6e5ae131cbd8729b /tests/unit | |
parent | e3de3aabe99ecc3294bd89323572ecb86a7bf1fb (diff) | |
download | genenetwork3-b4e81dd5cba130f0a2f47771bb2fd4d289ef745d.tar.gz |
tests: test_file_utils: Replace pytest.mark.skip with unittest.skip
"python setup.py test" won't skip "pytest.mark.skip" thereby leading to
build failure when you try to package gn3.
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/test_file_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/test_file_utils.py b/tests/unit/test_file_utils.py index 079293e..ed973b6 100644 --- a/tests/unit/test_file_utils.py +++ b/tests/unit/test_file_utils.py @@ -85,7 +85,7 @@ extracting the file""" "error": "gzip failed to unpack file" }) - @pytest.mark.skip(reason="ipfs http client breaks in Python > 38") + @unittest.skip("ipfs http client breaks in Python > 38") @pytest.mark.unit_test def test_cache_ipfs_file_cache_hit(self): """Test that the correct file location is returned if there's a cache hit""" @@ -106,7 +106,7 @@ extracting the file""" os.rmdir(test_dir) self.assertEqual(file_loc, f"{test_dir}/genotype.txt") - @pytest.mark.skip(reason="ipfs http client breaks in Python > 38") + @unittest.skip("ipfs http client breaks in Python > 38") @pytest.mark.unit_test @mock.patch("gn3.fs_helpers.ipfshttpclient") def test_cache_ipfs_file_cache_miss(self, |