File: skip-network-tests.patch

package info (click to toggle)
openstructure 2.11.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 206,240 kB
  • sloc: cpp: 188,571; python: 36,686; ansic: 34,298; fortran: 3,275; sh: 312; xml: 146; makefile: 29
file content (26 lines) | stat: -rw-r--r-- 1,279 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
Description: Skip tests requiring network access.
Author: Andrius Merkys <merkys@debian.org>
Index: openstructure/modules/io/tests/test_io_mmcif.py
===================================================================
--- openstructure.orig/modules/io/tests/test_io_mmcif.py
+++ openstructure/modules/io/tests/test_io_mmcif.py
@@ -253,6 +253,7 @@ class TestMMCifInfo(unittest.TestCase):
     self.assertEqual(i.GetObsoleteInfo().GetPDBID(), '1FOO')
     self.assertEqual(i.GetObsoleteInfo().GetReplacedPDBID(), '2BAR')
 
+  @unittest.skip("not running tests requiring network access")
   def test_remote_loading(self):
 
     if subprocess.call(['ping google.com -c 1'], shell=True,
Index: openstructure/modules/io/tests/test_io_pdb.py
===================================================================
--- openstructure.orig/modules/io/tests/test_io_pdb.py
+++ openstructure/modules/io/tests/test_io_pdb.py
@@ -36,6 +36,7 @@ class TestPDB(unittest.TestCase):
     self.assertTrue(mol.BondExists(res2.FindAtom("CA"),res2.FindAtom("CB")))
     self.assertTrue(mol.BondExists(resd.FindAtom("CA"),resd.FindAtom("CB")))
 
+  @unittest.skip("not running tests requiring network access")
   def test_remote_loading(self):
 
     if subprocess.call(['ping google.com -c 1'], shell=True,