Re: Namespace URLs in TestCase

2013-07-04 Thread Tomáš Ehrlich
As I said, it's trivial: urlpatterns = patterns('', url(r'^sso/$', include(app_patterns, 'app', 'app'))) The regexp is wrong. It should be only ^sso/ because other urls are appended after it… Fortunatelly, Django 1.6 has more helpful exception as it prints all url patterns which 'reverse'

Namespace URLs in TestCase

2013-07-04 Thread Tomas Ehrlich
Hi there, it's probably silly bug, but I can't figure it out: I have one test: ### # app/tests_functional/test_app.py from django.core.urlresolvers import reverse from django.test import TestCase class TestApp(TestCase): urls = 'app.tests_functional.urls' def test_app(self): pri