[Python-modules-commits] [django-simple-captcha] 01/01: Fix tests.
Brian May
bam at moszumanska.debian.org
Mon Oct 26 02:43:46 UTC 2015
This is an automated email from the git hooks/post-receive script.
bam pushed a commit to branch master
in repository django-simple-captcha.
commit 7994e8df4b2d560f1886a77e0958498d517d1db3
Author: Brian May <bam at debian.org>
Date: Mon Oct 26 13:34:47 2015 +1100
Fix tests.
---
debian/changelog | 6 ++++++
debian/rules | 3 +--
debian/run_tests.py | 27 ---------------------------
3 files changed, 7 insertions(+), 29 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index cd908dc..d67859c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+django-simple-captcha (0.4.6-2) unstable; urgency=medium
+
+ * Ensure tests run for Python3.4 and Python3.5.
+
+ -- Brian May <bam at debian.org> Mon, 26 Oct 2015 13:39:20 +1100
+
django-simple-captcha (0.4.6-1) unstable; urgency=medium
* New upstream version.
diff --git a/debian/rules b/debian/rules
index b6c948e..9274926 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,8 +8,7 @@ export PYBUILD_NAME=django-captcha
.PHONY: override_dh_auto_test
override_dh_auto_test:
- python2 debian/run_tests.py
- python3 debian/run_tests.py
+ dh_auto_test -- --system=custom --test-args="cd testproject && {interpreter} manage.py test captcha"
override_dh_install:
dh_install
diff --git a/debian/run_tests.py b/debian/run_tests.py
deleted file mode 100644
index 23fa87c..0000000
--- a/debian/run_tests.py
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/usr/bin/python
-
-import os
-import sys
-sys.path.insert(0, os.getcwd())
-
-from django.conf import settings
-settings.configure(
- ROOT_URLCONF=None,
- INSTALLED_APPS=['captcha'],
- DATABASES={
- 'default': {
- 'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': 'tests.db',
- 'USER': '',
- 'PASSWORD': '',
- 'HOST': '',
- 'PORT': '',
- }
- }
-)
-
-import django
-django.setup()
-
-from django.core import management
-management.call_command('test')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/django-simple-captcha.git
More information about the Python-modules-commits
mailing list