File: disable-tests-with-internet-access.patch

package info (click to toggle)
ariba 2.14.6%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 22,484 kB
  • sloc: python: 14,240; cpp: 733; xml: 101; sh: 57; makefile: 13; perl: 9
file content (35 lines) | stat: -rw-r--r-- 1,185 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
Description: disable tests that need Internet access
Author: Sascha Steinbiss <satta@debian.org>
Last-Update: 2019-09-09
--- a/ariba/tests/ncbi_getter_test.py
+++ b/ariba/tests/ncbi_getter_test.py
@@ -3,16 +3,16 @@
 import os
 from ariba.ref_genes_getter import RefGenesGetter
 
-class TestNcbiGetter(unittest.TestCase):
-    def setUp(self):
-        self.ncbi_db = RefGenesGetter('ncbi')._get_from_ncbi('ncbi.test', 'test')
-        # self.ncbi_db = RefGenesGetter.run('ncbi')
-        
-    def test_ncbi(self):
-        '''
-        Test that more than 4000 records have been found on NCBI AMR DB.
-        '''
-        self.assertTrue(len(self.ncbi_db) > 4000)
+#class TestNcbiGetter(unittest.TestCase):
+#    def setUp(self):
+#        self.ncbi_db = RefGenesGetter('ncbi')._get_from_ncbi('ncbi.test', 'test')
+#        # self.ncbi_db = RefGenesGetter.run('ncbi')
+#
+#    def test_ncbi(self):
+#        '''
+#        Test that more than 4000 records have been found on NCBI AMR DB.
+#        '''
+#        self.assertTrue(len(self.ncbi_db) > 4000)
 
-if __name__ == '__main__':
-    unittest.main()
\ No newline at end of file
+#if __name__ == '__main__':
+#    unittest.main()