Skip to content

Commit 6fa0571

Browse files
committed
Fix some tests failing on missing test data files
1 parent ea5b10d commit 6fa0571

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/pyfastani/tests/test_ani.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ def _load_fasta(self, path):
132132
def _get_sequence(self, record):
133133
return record.seq
134134

135+
@unittest.skipUnless(os.path.exists(ECOLI), "missing FastANI data files")
135136
def test_sketch_pickling(self):
136137
"""Check that pickling before indexing produces consistent results.
137138
"""
@@ -151,6 +152,7 @@ def test_sketch_pickling(self):
151152
self.assertEqual(hits[0].fragments, 1608)
152153
self.assertAlmostEqual(hits[0].identity, 97.7507, places=4)
153154

155+
@unittest.skipUnless(os.path.exists(ECOLI), "missing FastANI data files")
154156
def test_mapper_pickling(self):
155157
"""Check that pickling after indexing produces consistent results.
156158
"""

0 commit comments

Comments
 (0)