[python-pydap] 07/08: Update the tests based on upstream changes

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Fri Jun 2 14:07:03 UTC 2017


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

ghisvail-guest pushed a commit to branch master
in repository python-pydap.

commit 9147194603bd6bc843acc451619abf0288b1428a
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Fri Jun 2 11:11:45 2017 +0100

    Update the tests based on upstream changes
    
    - Switch from nose to pytest
    - Add new dependency on requests-mock
    - Drop the allow-stderr restriction, no longer required
    
    Gbp-Dch: Full
---
 debian/control       | 5 +++--
 debian/rules         | 2 +-
 debian/tests/control | 8 ++++----
 3 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/debian/control b/debian/control
index 2fc5450..77de64b 100644
--- a/debian/control
+++ b/debian/control
@@ -15,12 +15,13 @@ Build-Depends: debhelper (>= 10),
                python3-jinja2 <!nocheck>,
                python3-mechanicalsoup <!nocheck>,
                python3-netcdf4 <!nocheck>,
-               python3-nose <!nocheck>,
                python3-numpy <!nocheck>,
                python3-pygments <!nodoc>,
+               python3-pytest <!nocheck>,
                python3-requests <!nocheck>,
-               python3-scipy <!nocheck>,
+               python3-requests-mock <!nocheck>,
                python3-setuptools,
+               python3-scipy <!nocheck>,
                python3-six (>= 1.4.0) <!nocheck>,
                python3-sphinx <!nodoc>,
                python3-sphinx-rtd-theme <!nodoc>,
diff --git a/debian/rules b/debian/rules
index a12caa7..1d8e4ed 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,7 +8,7 @@ ifneq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
 export PYBUILD_DISABLE = test
 else
 export PYBUILD_BEFORE_TEST = cp -r {dir}/src/*.egg-info {build_dir}
-export PYBUILD_TEST_ARGS = -a "!auth"
+export PYBUILD_TEST_ARGS = -k "not server"
 export PYBUILD_AFTER_TEST = rm -rf {build_dir}/*.egg-info
 endif
 
diff --git a/debian/tests/control b/debian/tests/control
index 0cfafd8..9267d15 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,14 +1,14 @@
 Test-Command: set -e
- ; cp -r ./src/pydap/tests/* "$AUTOPKGTEST_TMP"
+ ; cp -r src/pydap/tests "$AUTOPKGTEST_TMP"
  ; for py in $(py3versions -r 2>/dev/null)
  ; do cd "$AUTOPKGTEST_TMP"
  ; echo "Testing with $py:"
- ; $py -m nose -v -a "!auth"
+ ; $py -m pytest -v -k "not server"
  ; done
 Depends: python3-all,
          python3-bs4,
-         python3-nose,
          python3-pydap,
+         python3-pytest,
          python3-requests,
+         python3-requests-mock,
          python3-webtest
-Restrictions: allow-stderr

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



More information about the debian-science-commits mailing list