From b8ab2e4408561cf3e4aa9efb0a499b1186e389fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gregor=20M=C3=BCllegger?= Date: Thu, 28 Nov 2013 11:33:09 +0100 Subject: [PATCH] Make sure that the urls.py is loaded before the tests are run. Django 1.6 doesn't guarantee this anymore. Part of a Fix for #387. --- example/blog/tests/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/example/blog/tests/__init__.py b/example/blog/tests/__init__.py index dee6a40..8a7bd1e 100644 --- a/example/blog/tests/__init__.py +++ b/example/blog/tests/__init__.py @@ -1,3 +1,7 @@ +# make sure that everything is setup for tests. Django 1.6 doesn't necessarily +# load the urls.py before the tests are run. +import example.urls + from test_apiviews import * from test_builtin_api_resources import * from test_permissions import *