Skip to content

Commit

Permalink
Test pyfaidx module version
Browse files Browse the repository at this point in the history
Related to mdshw5#206
  • Loading branch information
mdshw5 authored Feb 16, 2023
1 parent 5b137fb commit ceeed4b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_feature_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ def remove_index():
os.remove('data/genes.fasta.fai')
except EnvironmentError:
pass # some tests may delete this file

def test_version_issue_206():
import pyfaidx
assert isinstance(pyfaidx.__version__, string)

def test_build(remove_index):
expect_index = ("gi|563317589|dbj|AB821309.1| 3510 114 70 71\n"
Expand Down Expand Up @@ -349,4 +353,4 @@ def test_issue_144_no_defline(remove_index):
with pytest.raises(FastaIndexingError):
faidx = Faidx(fasta_path)
finally:
shutil.rmtree(tmp_dir)
shutil.rmtree(tmp_dir)

0 comments on commit ceeed4b

Please sign in to comment.