Skip to content

Commit

Permalink
just need a main test and write tests and all with minimal cov
Browse files Browse the repository at this point in the history
  • Loading branch information
CNuge committed Mar 11, 2020
1 parent a67a605 commit 1734e00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file modified alfie/__pycache__/alf.cpython-37.pyc
Binary file not shown.
5 changes: 3 additions & 2 deletions alfie/tests/test_seqio.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ def test_file_type():
file_type("in.file_2.csv")


#the tmpdir avoids making a directory
def test_outfile_builder(tmpdir):
def test_outfile_builder():
"""Test that the output file set is generated properly."""
expected_kingdom_dict1 = {0: 'alfie_out/animalia_test.fasta',
1: 'alfie_out/bacteria_test.fasta',
Expand All @@ -46,6 +45,8 @@ def test_outfile_builder(tmpdir):
out2 = outfile_dict("in_data/test.fastq", folder_prefix = 'diff_place/')
assert out2 == expected_kingdom_dict2

os.rmdir("alfie_out")
os.rmdir("diff_place")

def test_fasta_reader():
""" Test the fasta reader functions."""
Expand Down

0 comments on commit 1734e00

Please sign in to comment.