[Python-modules-commits] [betamax] 06/08: Enable tests at build time

Daniele Tricoli eriol-guest at moszumanska.debian.org
Sat May 28 21:06:23 UTC 2016


This is an automated email from the git hooks/post-receive script.

eriol-guest pushed a commit to branch master
in repository betamax.

commit 862572e50910c6a1c28143f2b097c409ce12c943
Author: Daniele Tricoli <eriol at mornie.org>
Date:   Sat May 28 13:54:06 2016 +0200

    Enable tests at build time
---
 debian/control |  4 ++++
 debian/rules   | 14 +++++++++++---
 2 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index e5fef49..d9584a1 100644
--- a/debian/control
+++ b/debian/control
@@ -8,9 +8,13 @@ Build-Depends:
  debhelper (>= 9),
  dh-python,
  python-all,
+ python-mock,
+ python-pytest,
  python-requests (>= 2.0),
  python-setuptools,
  python3-all,
+ python3-mock,
+ python3-pytest,
  python3-requests (>= 2.0),
  python3-setuptools,
 Standards-Version: 3.9.8
diff --git a/debian/rules b/debian/rules
index e0e5c34..6e1047e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,9 +2,17 @@
 
 export PYBUILD_NAME=betamax
 
-# Some tests are missing from source tarball, so for now we disable them.
-# See https://github.com/sigmavirus24/betamax/pull/90
-export PYBUILD_DISABLE=test
+# test_fixtures.py needs package already installed, test_add_urllib3_response
+# is broken due unbundling in Debian
+# (see https://github.com/kennethreitz/requests/issues/2870) and remaining
+# tests need Internet connection.
+export PYBUILD_TEST_ARGS=--ignore tests/integration/test_fixtures.py \
+	--ignore tests/integration/test_hooks.py \
+	--ignore tests/integration/test_placeholders.py \
+	--ignore tests/integration/test_record_modes.py \
+	--ignore tests/integration/test_unicode.py \
+	--ignore tests/regression/test_gzip_compression.py \
+	-k 'not test_add_urllib3_response'
 
 %:
 	dh $@ --with python2,python3 --buildsystem=pybuild

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/betamax.git



More information about the Python-modules-commits mailing list