Skip to content

Commit

Permalink
TestBmtagger now tests parser_... and main_..., not just partition_bm…
Browse files Browse the repository at this point in the history
…tagger.
  • Loading branch information
iljungr committed Nov 5, 2014
1 parent dd958f0 commit 71cac2a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions test/test_taxon_filter.py
Expand Up @@ -103,13 +103,14 @@ def test_bmtagger(self) :
shutil.copy(os.path.join(myInputDir, db + '.bitmask'), tempDir)

# Partition the input files
taxon_filter.partition_bmtagger(
os.path.join(myInputDir, 'in1.fastq'),
os.path.join(myInputDir, 'in2.fastq'),
[os.path.join(tempDir, 'humanChr1Subset'),
os.path.join(tempDir, 'humanChr9Subset')],
os.path.join(tempDir, 'outMatch'),
os.path.join(tempDir, 'outNoMatch'))
args = taxon_filter.parser_partition_bmtagger().parse_args(
[os.path.join(myInputDir, 'in1.fastq'),
os.path.join(myInputDir, 'in2.fastq'),
os.path.join(tempDir, 'humanChr1Subset'),
os.path.join(tempDir, 'humanChr9Subset'),
'--outMatch', os.path.join(tempDir, 'outMatch'),
'--outNoMatch', os.path.join(tempDir, 'outNoMatch')])
taxon_filter.main_partition_bmtagger(args)

# Compare to expected
for case in ['Match.1', 'Match.2', 'NoMatch.1', 'NoMatch.2'] :
Expand Down

0 comments on commit 71cac2a

Please sign in to comment.