Skip to content

Commit

Permalink
Fix test for Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
jlumpe committed Oct 7, 2022
1 parent 153aed0 commit 828c085
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/db/test_db_refdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def session(self, make_empty_db):

for i in range(20):
g = Genome(
key=f'test/genome_{i}',
key=f'genome_{i}',
description=f'Test genome {i}',
ncbi_db='assembly',
ncbi_id=i,
Expand Down Expand Up @@ -150,9 +150,12 @@ def test_locate_files(self, tmp_path):
ReferenceDatabase.locate_files(tmp_path)

# Alternate extensions
genomes = genomes.rename(tmp_path / 'test.db')
genomes2.unlink()
signatures = signatures.rename(tmp_path / 'test.gs')
for file in [genomes, genomes2, signatures]:
file.unlink()
genomes = tmp_path / 'test.db'
signatures = tmp_path / 'test.gs'
genomes.touch()
signatures.touch()
assert ReferenceDatabase.locate_files(tmp_path) == (genomes, signatures)

def test_load(self, testdb):
Expand Down

0 comments on commit 828c085

Please sign in to comment.