Skip to content

Commit

Permalink
Fixed some tests for the Docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
kpepper committed Mar 13, 2019
1 parent 736955e commit 57430c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ariba/tests/cdhit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def test_get_run_cmd_with_default_memory(self):
fa_infile = os.path.join(data_dir, 'cdhit_test_run_get_clusters_from_dict_rename.in.fa')
r = cdhit.Runner(fa_infile)
run_cmd = r.get_run_cmd('foo/bar/file.out')
match = re.search('^.+cd-hit-est -i .+ -o foo/bar/file.out -c 0.9 -T 1 -s 0.0 -d 0 -bak 1$', run_cmd)
match = re.search('^.+ -o foo/bar/file.out -c 0.9 -T 1 -s 0.0 -d 0 -bak 1$', run_cmd)
self.assertIsNotNone(match, msg="Command output was " + run_cmd)


Expand All @@ -187,7 +187,7 @@ def test_get_run_cmd_with_non_default_memory(self):
fa_infile = os.path.join(data_dir, 'cdhit_test_run_get_clusters_from_dict_rename.in.fa')
r = cdhit.Runner(fa_infile, memory_limit=900)
run_cmd = r.get_run_cmd('foo/bar/file.out')
match = re.search('^.+cd-hit-est -i .+ -c 0.9 -T 1 -s 0.0 -d 0 -bak 1 -M 900$', run_cmd)
match = re.search('^.+ -o foo/bar/file.out -c 0.9 -T 1 -s 0.0 -d 0 -bak 1 -M 900$', run_cmd)
self.assertIsNotNone(match, msg="Command output was " + run_cmd)


Expand All @@ -196,5 +196,5 @@ def test_get_run_cmd_with_unlimited_memory(self):
fa_infile = os.path.join(data_dir, 'cdhit_test_run_get_clusters_from_dict_rename.in.fa')
r = cdhit.Runner(fa_infile, memory_limit=0)
run_cmd = r.get_run_cmd('foo/bar/file.out')
match = re.search('^.+cd-hit-est -i .+ -c 0.9 -T 1 -s 0.0 -d 0 -bak 1 -M 0$', run_cmd)
match = re.search('^.+ -o foo/bar/file.out -c 0.9 -T 1 -s 0.0 -d 0 -bak 1 -M 0$', run_cmd)
self.assertIsNotNone(match, msg="Command output was " + run_cmd)

0 comments on commit 57430c7

Please sign in to comment.