Skip to content

Commit 8fb3e70

Browse files
committed
all TestCase sub-classes need the urls attribute to run
1 parent 34f3361 commit 8fb3e70

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

session_csrf/tests.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def test_csrftoken_existing_session(self):
6868

6969

7070
class TestCsrfMiddleware(django.test.TestCase):
71-
71+
urls = 'session_csrf.tests'
72+
7273
def setUp(self):
7374
self.token = 'a' * 32
7475
self.rf = django.test.RequestFactory()
@@ -147,7 +148,8 @@ def test_csrf_token_context_processor(self):
147148

148149

149150
class TestAnonymousCsrf(django.test.TestCase):
150-
151+
urls = 'session_csrf.tests'
152+
151153
def setUp(self):
152154
self.token = 'a' * 32
153155
self.rf = django.test.RequestFactory()

0 commit comments

Comments
 (0)