Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Refs #15903 -- Added a per-TestCase urlconf to reduce coupling betwee…

…n test apps.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16107 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 04654e554ff5fe048275624b75fa5f9279aff175 1 parent c85b765
Carl Meyer authored April 27, 2011
6  tests/regressiontests/views/tests/debug.py
@@ -12,6 +12,8 @@
12 12
 
13 13
 
14 14
 class DebugViewTests(TestCase):
  15
+    urls = "regressiontests.views.urls"
  16
+
15 17
     def setUp(self):
16 18
         self.old_debug = settings.DEBUG
17 19
         settings.DEBUG = True
@@ -23,13 +25,13 @@ def tearDown(self):
23 25
         settings.TEMPLATE_DEBUG = self.old_template_debug
24 26
 
25 27
     def test_files(self):
26  
-        response = self.client.get('/views/raises/')
  28
+        response = self.client.get('/raises/')
27 29
         self.assertEqual(response.status_code, 500)
28 30
 
29 31
         data = {
30 32
             'file_data.txt': SimpleUploadedFile('file_data.txt', 'haha'),
31 33
         }
32  
-        response = self.client.post('/views/raises/', data)
  34
+        response = self.client.post('/raises/', data)
33 35
         self.assertTrue('file_data.txt' in response.content)
34 36
         self.assertFalse('haha' in response.content)
35 37
 

0 notes on commit 04654e5

Please sign in to comment.
Something went wrong with that request. Please try again.