File: fix_test.patch

package info (click to toggle)
srst2 0.2.0-14
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,072 kB
  • sloc: python: 3,115; sh: 50; makefile: 25
file content (45 lines) | stat: -rw-r--r-- 1,483 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Author: Ryan Wick <rrwick@gmail.com>
Last-Update: 2016-08-22
Origin: Upstream commit cd93cde1f2e4639db426e8b57b6ec5d278c0d02f
Description: Update test for recent version

--- a/tests/test_srst2.py
+++ b/tests/test_srst2.py
@@ -158,6 +158,8 @@ class TestRunBowtie(unittest.TestCase):
 		arg_mock.read_type = 'foo'
 		arg_mock.stop_after = False
 		arg_mock.other = False
+		arg_mock.threads = 4
+		arg_mock.use_existing_bowtie2_sam = False
 		actual_sam = srst2.run_bowtie('mapping_file', 'sample', ['fastq'], arg_mock,
 									  'db_name', 'db_path')
 		self.assertEqual(actual_sam, 'mapping_file.sam')
@@ -173,7 +175,8 @@ class TestRunBowtie(unittest.TestCase):
 			'--very-sensitive-local',
 			'--no-unal',
 			'-a',
-			'-x', 'db_path'
+			'-x', 'db_path',
+			'--threads', '4'
 		]
 		run_mock.assert_called_once_with(expected_bowtie2_command)
 
@@ -191,6 +194,8 @@ class TestRunBowtie(unittest.TestCase):
 		arg_mock.read_type = 'foo'
 		arg_mock.stop_after = False
 		arg_mock.other = False
+		arg_mock.threads = 4
+		arg_mock.use_existing_bowtie2_sam = False
 		actual_sam = srst2.run_bowtie('mapping_file', 'sample', ['fastq'], arg_mock,
 									  'db_name', 'db_path')
 		self.assertEqual(actual_sam, 'mapping_file.sam')
@@ -206,7 +211,8 @@ class TestRunBowtie(unittest.TestCase):
 			'--very-sensitive-local',
 			'--no-unal',
 			'-a',
-			'-x', 'db_path'
+			'-x', 'db_path',
+			'--threads', '4'
 		]
 		run_mock.assert_called_once_with(expected_bowtie2_command)