From 04654e554ff5fe048275624b75fa5f9279aff175 Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Wed, 27 Apr 2011 15:47:16 +0000 Subject: [PATCH] Refs #15903 -- Added a per-TestCase urlconf to reduce coupling between test apps. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16107 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/views/tests/debug.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/regressiontests/views/tests/debug.py b/tests/regressiontests/views/tests/debug.py index 9aba3039ac..d77831122a 100644 --- a/tests/regressiontests/views/tests/debug.py +++ b/tests/regressiontests/views/tests/debug.py @@ -12,6 +12,8 @@ from regressiontests.views import BrokenException, except_args class DebugViewTests(TestCase): + urls = "regressiontests.views.urls" + def setUp(self): self.old_debug = settings.DEBUG settings.DEBUG = True @@ -23,13 +25,13 @@ class DebugViewTests(TestCase): settings.TEMPLATE_DEBUG = self.old_template_debug def test_files(self): - response = self.client.get('/views/raises/') + response = self.client.get('/raises/') self.assertEqual(response.status_code, 500) data = { 'file_data.txt': SimpleUploadedFile('file_data.txt', 'haha'), } - response = self.client.post('/views/raises/', data) + response = self.client.post('/raises/', data) self.assertTrue('file_data.txt' in response.content) self.assertFalse('haha' in response.content)