Skip to content

Commit

Permalink
no outdir
Browse files Browse the repository at this point in the history
  • Loading branch information
CNuge committed Mar 10, 2020
1 parent f034f9c commit 9f94e55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Binary file modified alfie/__pycache__/test_seqio.cpython-37-pytest-5.2.1.pyc
Binary file not shown.
10 changes: 3 additions & 7 deletions alfie/test_seqio.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@

#import os

import os
import pytest

from alfie.seqio import file_type, outfile_dict, read_fasta, read_fastq
from alfie import ex_fasta_file, ex_fastq_file

"""
#TODO - unit tests for write - see if buffer or make and destroy files is best practice
#when you add the write tests, do this in pytest
def tearDown(self):
#After unit tests, remove the temporary outputs.
try:
os.rmdir("alfie_out")
except OSError:
pass
"""

def test_file_type():
Expand Down Expand Up @@ -53,6 +47,8 @@ def test_outfile_builder():
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 9f94e55

Please sign in to comment.