[Python-modules-commits] [django-auth-ldap] 07/12: Update test runner to work with upstream changes (no more manage.py).

Michael Fladischer fladi at moszumanska.debian.org
Fri Nov 24 11:22:26 UTC 2017


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

fladi pushed a commit to branch debian/master
in repository django-auth-ldap.

commit ee5cef8e475d5b147451aaea13651247cf6c0357
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date:   Fri Nov 24 12:01:06 2017 +0100

    Update test runner to work with upstream changes (no more manage.py).
---
 debian/changelog | 2 ++
 debian/rules     | 6 +++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 083d362..a5faefa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ django-auth-ldap (1.3.0-1) UNRELEASED; urgency=low
   * New upstream release.
   * Move upstream signing key to debian/upstream/signing-key.asc.
   * Refresh patches.
+  * Update test runner to work with upstream changes (no more
+    manage.py).
 
  -- Michael Fladischer <fladi at debian.org>  Fri, 24 Nov 2017 10:59:09 +0100
 
diff --git a/debian/rules b/debian/rules
index 7ab249c..08ebd7a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,8 +4,8 @@
 #export DH_VERBOSE=1
 
 export PYBUILD_NAME=django-auth-ldap
-export PYBUILD_BEFORE_TEST=cp -r {dir}/test {build_dir}
-export PYBUILD_AFTER_TEST=rm -rf {build_dir}/test
+export PYBUILD_BEFORE_TEST=cp -r {dir}/tests {build_dir}
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/tests
 
 %:
 	dh $@ --with=python2,python3,sphinxdoc --buildsystem=pybuild
@@ -15,7 +15,7 @@ override_dh_auto_build:
 	PYTHONPATH=. sphinx-build -b html -d docs/.build/.doctrees -N docs/source docs/.build/html
 
 override_dh_auto_test:
-	dh_auto_test -- --system=custom --test-args="PYTHONPATH=. {interpreter} {dir}/test/manage.py test django_auth_ldap"
+	dh_auto_test -- --system=custom --test-args="PYTHONPATH=. {interpreter} /usr/bin/django-admin test --settings tests.settings"
 
 override_dh_clean:
 	rm -rf docs/.build/

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



More information about the Python-modules-commits mailing list