Skip to content

Commit

Permalink
Fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rafelafrance committed Feb 9, 2019
1 parent 1290f6a commit b59075b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/assemblers/base.py
Expand Up @@ -26,7 +26,7 @@ def __init__(self, args, cxn):
'query_target': '', # Original name of the query sequence
'query_file': '', # Current query file name
'blast_db': '', # Current blast DB name
'iter_dir': '', # Name of the temp dir for this interation
'iter_dir': '', # Name of the temp dir for this iteration
'cxn': cxn} # Save the DB connection

def init_iteration(self, blast_db, query_file, iteration):
Expand Down
14 changes: 7 additions & 7 deletions tests/lib/assemblers/test_base.py
Expand Up @@ -66,12 +66,12 @@ def test_setup_files_01():

assert asm.state['iter_dir'] == iter_dir
assert asm.file['long_reads'] == ''
assert asm.file['output'] == join(iter_dir, 'output.fasta')
assert asm.file['paired_1'] == join(iter_dir, 'paired_1.fasta')
assert asm.file['paired_2'] == join(iter_dir, 'paired_2.fasta')
assert asm.file['single_1'] == join(iter_dir, 'single_1.fasta')
assert asm.file['single_2'] == join(iter_dir, 'single_2.fasta')
assert asm.file['single_any'] == join(iter_dir, 'single_any.fasta')
assert asm.file['output'].endswith(join(iter_dir, 'output.fasta'))
assert asm.file['paired_1'].endswith(join(iter_dir, 'paired_1.fasta'))
assert asm.file['paired_2'].endswith(join(iter_dir, 'paired_2.fasta'))
assert asm.file['single_1'].endswith(join(iter_dir, 'single_1.fasta'))
assert asm.file['single_2'].endswith(join(iter_dir, 'single_2.fasta'))
assert asm.file['single_any'].endswith(join(iter_dir, 'single_any.fasta'))
assert asm.file['paired_count'] == 0
assert asm.file['single_1_count'] == 0
assert asm.file['single_2_count'] == 0
Expand All @@ -94,7 +94,7 @@ def test_iter_file_01():
file_name = 'my_file.txt'
asm = build_assembler()
expected = join(asm.state['iter_dir'], file_name)
assert asm.iter_file(file_name) == expected
assert asm.iter_file(file_name).endswith(expected)

def test_work_path_01():
"""It builds the work directory."""
Expand Down

0 comments on commit b59075b

Please sign in to comment.