[pywps] 08/16: Fix dh_auto_test override.
Bas Couwenberg
sebastic at debian.org
Mon Aug 22 21:44:54 UTC 2016
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch experimental
in repository pywps.
commit a1a780a9322fad0f80cd1d3e530cd7291ad2ab47
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Fri Jul 22 02:11:16 2016 +0200
Fix dh_auto_test override.
---
debian/control | 12 ++++++++++--
debian/patches/offline-tests.patch | 33 +++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 4 +++-
4 files changed, 47 insertions(+), 3 deletions(-)
diff --git a/debian/control b/debian/control
index bc97822..f42c0c5 100644
--- a/debian/control
+++ b/debian/control
@@ -8,10 +8,14 @@ Build-Depends: debhelper (>= 9),
dh-apache2,
dh-python,
python-all,
+ python-flufl.enum,
python-gdal,
+ python-jsonschema,
python-lxml,
+ python-owslib,
python-setuptools,
- python-sphinx
+ python-sphinx,
+ python-werkzeug
Standards-Version: 3.9.8
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-grass/pywps.git
Vcs-Git: https://anonscm.debian.org/git/pkg-grass/pywps.git -b experimental
@@ -20,8 +24,12 @@ X-Python-Version: >= 2.7
Package: python-pywps
Architecture: all
-Depends: python-gdal,
+Depends: python-flufl.enum,
+ python-gdal,
+ python-jsonschema,
python-lxml,
+ python-owslib,
+ python-werkzeug,
${python:Depends},
${misc:Depends}
Recommends: python-mapscript,
diff --git a/debian/patches/offline-tests.patch b/debian/patches/offline-tests.patch
new file mode 100644
index 0000000..086006e
--- /dev/null
+++ b/debian/patches/offline-tests.patch
@@ -0,0 +1,33 @@
+Description: Disable tests that require network.
+Author: Bas Couwenberg <sebastic at debian.org>
+
+--- a/tests/test_ows.py
++++ b/tests/test_ows.py
+@@ -103,6 +103,7 @@ def create_sum_one():
+
+ class ExecuteTests(unittest.TestCase):
+
++ @unittest.skipIf('OFFLINE_TESTS' in os.environ, "offline tests only")
+ def test_wfs(self):
+ client = client_for(Service(processes=[create_feature()]))
+ request_doc = WPS.Execute(
+@@ -127,6 +128,7 @@ class ExecuteTests(unittest.TestCase):
+ # . the inclusion of output
+ # . the type of output
+
++ @unittest.skipIf('OFFLINE_TESTS' in os.environ, "offline tests only")
+ def test_wcs(self):
+ try:
+ sys.path.append("/usr/lib/grass64/etc/python/")
+--- a/tests/validator/test_complexvalidators.py
++++ b/tests/validator/test_complexvalidators.py
+@@ -63,7 +63,8 @@ class ValidateTest(unittest.TestCase):
+ self.assertTrue(validategml(gml_input, MODE.SIMPLE), 'SIMPLE validation')
+ if WITH_GDAL:
+ self.assertTrue(validategml(gml_input, MODE.STRICT), 'STRICT validation')
+- self.assertTrue(validategml(gml_input, MODE.VERYSTRICT), 'VERYSTRICT validation')
++ if os.environ.get('OFFLINE_TESTS') == None:
++ self.assertTrue(validategml(gml_input, MODE.VERYSTRICT), 'VERYSTRICT validation')
+ gml_input.stream.close()
+
+ def test_geojson_validator(self):
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..99c4ae9
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+offline-tests.patch
diff --git a/debian/rules b/debian/rules
index a7c7d04..222f9ec 100755
--- a/debian/rules
+++ b/debian/rules
@@ -26,7 +26,9 @@ override_dh_auto_build:
(cd docs && $(MAKE) html)
override_dh_auto_test:
- (cd tests && python soap_tests.py || echo "Ignoring test failures")
+ PYBUILD_BEFORE_TEST="cp -rv {dir}/pywps/schemas {build_dir}/pywps/" \
+ OFFLINE_TESTS=1 \
+ dh_auto_test || echo "Ignoring test failures"
override_dh_auto_install:
dh_auto_install
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pywps.git
More information about the Pkg-grass-devel
mailing list