[Python-modules-commits] r30443 - in packages/django-sekizai/trunk/debian (3 files)

fladi-guest at users.alioth.debian.org fladi-guest at users.alioth.debian.org
Mon Sep 1 08:21:37 UTC 2014


    Date: Monday, September 1, 2014 @ 08:21:36
  Author: fladi-guest
Revision: 30443

Add patch to call django.setup() on Django 1.7 before running the tests.

Added:
  packages/django-sekizai/trunk/debian/patches/
  packages/django-sekizai/trunk/debian/patches/django-1.7.patch
  packages/django-sekizai/trunk/debian/patches/series

Added: packages/django-sekizai/trunk/debian/patches/django-1.7.patch
===================================================================
--- packages/django-sekizai/trunk/debian/patches/django-1.7.patch	                        (rev 0)
+++ packages/django-sekizai/trunk/debian/patches/django-1.7.patch	2014-09-01 08:21:36 UTC (rev 30443)
@@ -0,0 +1,36 @@
+Description: Initialize Django before tests are run.
+ Django 1.7 introduced changes to its start-up sequence. See:
+ https://docs.djangoproject.com/en/dev/releases/1.7/#standalone-scripts
+Author: Michael Fladischer <FladischerMichael at fladi.at>
+Last-Update: 2014-09-01
+Forwarded: https://github.com/ojii/django-sekizai/pull/39
+
+--- a/runtests.py
++++ b/runtests.py
+@@ -1,6 +1,7 @@
+ # -*- coding: utf-8 -*-
+ import os
+ import sys
++import django
+ 
+ urlpatterns = []
+ 
+@@ -25,7 +26,7 @@
+ TEMPLATE_CONTEXT_PROCESSORS = [
+     'sekizai.context_processors.sekizai',
+ ]
+-    
++
+ 
+ ROOT_URLCONF = 'runtests'
+ 
+@@ -45,6 +46,9 @@
+     from django.test.utils import get_runner
+     TestRunner = get_runner(settings)
+ 
++    if django.VERSION >= (1, 7):
++        django.setup()
++
+     test_runner = TestRunner(verbosity=1, interactive=False, failfast=False)
+     failures = test_runner.run_tests(INSTALLED_APPS)
+     return failures

Added: packages/django-sekizai/trunk/debian/patches/series
===================================================================
--- packages/django-sekizai/trunk/debian/patches/series	                        (rev 0)
+++ packages/django-sekizai/trunk/debian/patches/series	2014-09-01 08:21:36 UTC (rev 30443)
@@ -0,0 +1 @@
+django-1.7.patch




More information about the Python-modules-commits mailing list