[Python-modules-commits] r25396 - in packages/python-django-threadedcomments/trunk/debian (3 files)
ockham-guest at users.alioth.debian.org
ockham-guest at users.alioth.debian.org
Mon Aug 5 12:55:07 UTC 2013
Date: Monday, August 5, 2013 @ 12:55:05
Author: ockham-guest
Revision: 25396
debian/rules, debian/testsettings.py (added):
Add a SECRET_KEY for tests during building. (Closes: #711369)
Added:
packages/python-django-threadedcomments/trunk/debian/testsettings.py
Modified:
packages/python-django-threadedcomments/trunk/debian/changelog
packages/python-django-threadedcomments/trunk/debian/rules
Modified: packages/python-django-threadedcomments/trunk/debian/changelog
===================================================================
--- packages/python-django-threadedcomments/trunk/debian/changelog 2013-08-05 12:51:58 UTC (rev 25395)
+++ packages/python-django-threadedcomments/trunk/debian/changelog 2013-08-05 12:55:05 UTC (rev 25396)
@@ -8,6 +8,8 @@
* debian/patches/series, debian/patches/add_markup_deps_to_install,
debian/patches/gravatar_default_url, debian/patches/django14:
Remove patches, as obsolete.
+ * debian/rules, debian/testsettings.py (added):
+ Add a SECRET_KEY for tests during building. (Closes: #711369)
[ Jakub Wilk ]
* Use canonical URIs for Vcs-* fields.
Modified: packages/python-django-threadedcomments/trunk/debian/rules
===================================================================
--- packages/python-django-threadedcomments/trunk/debian/rules 2013-08-05 12:51:58 UTC (rev 25395)
+++ packages/python-django-threadedcomments/trunk/debian/rules 2013-08-05 12:55:05 UTC (rev 25396)
@@ -5,11 +5,13 @@
override_dh_auto_test:
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
+ cp debian/testsettings.py threadedcomments/; \
set -e; \
- cd tests; \
for python in $(shell pyversions -r); do \
- $$python runtests.py; \
- done
+ DJANGO_SETTINGS_MODULE="threadedcomments.testsettings" \
+ $$python -m threadedcomments.tests; \
+ done; \
+ rm threadedcomments/testsettings.py
endif
override_dh_auto_clean:
Added: packages/python-django-threadedcomments/trunk/debian/testsettings.py
===================================================================
--- packages/python-django-threadedcomments/trunk/debian/testsettings.py (rev 0)
+++ packages/python-django-threadedcomments/trunk/debian/testsettings.py 2013-08-05 12:55:05 UTC (rev 25396)
@@ -0,0 +1 @@
+SECRET_KEY="test"
More information about the Python-modules-commits
mailing list