[med-svn] [python-csb] 05/05: Exclude online tests (even if these do not cause failures)
Andreas Tille
tille at debian.org
Mon Dec 28 23:41:17 UTC 2015
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository python-csb.
commit f306ef01a077ec760f20d74bfbbd9008309d0b44
Author: Andreas Tille <tille at debian.org>
Date: Tue Dec 29 00:40:36 2015 +0100
Exclude online tests (even if these do not cause failures)
---
debian/changelog | 8 +++--
debian/patches/exclude_online_tests.patch | 51 +++++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 58 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 4364bf3..3541aef 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,14 @@
-python-csb (1.2.3+dfsg-2) UNRELEASED; urgency=medium
+python-csb (1.2.3+dfsg-2) unstable; urgency=medium
* Fix d/watch
* Fix clean target
* use pybuild
+ * Add missing Build-Depends for Python3
+ * Verified tests and excluded online tests (even if these do not cause
+ failures)
+ Closes: #738962
- -- Andreas Tille <tille at debian.org> Sat, 26 Dec 2015 08:01:36 +0100
+ -- Andreas Tille <tille at debian.org> Mon, 28 Dec 2015 15:37:52 +0100
python-csb (1.2.3+dfsg-1) unstable; urgency=medium
diff --git a/debian/patches/exclude_online_tests.patch b/debian/patches/exclude_online_tests.patch
new file mode 100644
index 0000000..2f23b39
--- /dev/null
+++ b/debian/patches/exclude_online_tests.patch
@@ -0,0 +1,51 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Sat, 26 Dec 2015 08:01:36 +0100
+Bug-Debian: https://bugs.debian.org/738962
+Description: Exclude tests requiring online access
+
+--- a/csb/test/cases/bio/io/wwpdb/__init__.py
++++ b/csb/test/cases/bio/io/wwpdb/__init__.py
+@@ -503,43 +503,6 @@ class TestCustomProvider(test.Case):
+ self.assertTrue(isinstance(s, Structure))
+ self.assertRaises(StructureNotFoundError, self.provider.get, '$')
+
+- at test.unit
+-class TestRemoteProvider(test.Case):
+-
+- def setUp(self):
+-
+- super(TestRemoteProvider, self).setUp()
+- self.provider = RemoteStructureProvider()
+-
+- def testGet(self):
+-
+- s = self.provider.get('3p1u')
+- self.assertEqual(s.accession, '3p1u')
+- self.assertTrue(isinstance(s, Structure))
+-
+- self.provider.prefix = 'http://www.google.com/NotExisting'
+- self.assertRaises(StructureNotFoundError, self.provider.get, 'NoSuchFile')
+-
+-
+- at test.functional
+-class TestGet(test.Case):
+-
+- def runTest(self):
+-
+- structure = get('1d3z')
+- self.assertEqual(structure.accession, '1d3z')
+-
+- # Chain level
+- self.assertEqual(structure.chains.length, 1)
+- self.assertEqual(len(structure.chains), 1)
+-
+- self.assertEqual(len(structure.chains['A']), 76)
+- self.assertEqual(len(structure['A']), 76)
+-
+- # Residue level
+- self.assertEqual(len(structure['A'][1:10]), 9)
+- self.assertEqual(structure['A'][0].type,SequenceAlphabets.Protein.MET)
+-
+
+ @test.functional
+ class TestFind(test.Case):
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..3f27449
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+exclude_online_tests.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-csb.git
More information about the debian-med-commit
mailing list