[Python-modules-commits] r29574 - in packages/django-simple-captcha/trunk/debian (2 files)

bam at users.alioth.debian.org bam at users.alioth.debian.org
Wed Jul 2 05:26:07 UTC 2014


    Date: Wednesday, July 2, 2014 @ 05:24:52
  Author: bam
Revision: 29574

Fix testing.

Modified:
  packages/django-simple-captcha/trunk/debian/patches/tests
  packages/django-simple-captcha/trunk/debian/rules

Modified: packages/django-simple-captcha/trunk/debian/patches/tests
===================================================================
--- packages/django-simple-captcha/trunk/debian/patches/tests	2014-07-02 05:03:23 UTC (rev 29573)
+++ packages/django-simple-captcha/trunk/debian/patches/tests	2014-07-02 05:24:52 UTC (rev 29574)
@@ -1,12 +1,18 @@
-Index: django-simple-captcha-0.4.2/setup.py
+Index: django-simple-captcha-0.4.2/captcha/tests/settings.py
 ===================================================================
---- django-simple-captcha-0.4.2.orig/setup.py	2014-06-20 15:20:19.989457655 +1000
-+++ django-simple-captcha-0.4.2/setup.py	2014-06-20 15:42:53.022183080 +1000
-@@ -35,5 +35,6 @@
-     ],
-     include_package_data=True,
-     zip_safe=False,
--    install_requires=install_requires
-+    install_requires=install_requires,
-+    test_suite=None,
- )
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ django-simple-captcha-0.4.2/captcha/tests/settings.py	2014-07-02 15:05:33.479117584 +1000
+@@ -0,0 +1,13 @@
++INSTALLED_APPS=[ "captcha", ]
++SECRET_KEY = '5hvhpe6gv2t5x4$3dtq(w2v#vg@)sx4p3r_ at wv%l41g!stslc*'
++ROOT_URLCONF = None
++DATABASES = {
++    'default': {
++        'ENGINE': 'django.db.backends.sqlite3',
++        'NAME': 'captcha.db',
++        'USER': '',
++        'PASSWORD': '',
++        'HOST': '',
++        'PORT': '',
++    }
++}

Modified: packages/django-simple-captcha/trunk/debian/rules
===================================================================
--- packages/django-simple-captcha/trunk/debian/rules	2014-07-02 05:03:23 UTC (rev 29573)
+++ packages/django-simple-captcha/trunk/debian/rules	2014-07-02 05:24:52 UTC (rev 29574)
@@ -5,3 +5,13 @@
 
 %:
 	dh $@ --with python2,python3 --buildsystem=pybuild
+
+export PYTHONPATH=$(CURDIR)
+
+.PHONY: override_dh_auto_test
+override_dh_auto_test:
+	python2.7 /usr/lib/python2.7/dist-packages/django/bin/django-admin.py \
+		test --settings=captcha.tests.settings
+	python3 /usr/lib/python3/dist-packages/django/bin/django-admin.py \
+		test --settings=captcha.tests.settings
+




More information about the Python-modules-commits mailing list