Skip to content

Commit 86052cc

Browse files
committed
test: add WEB_USE_TOKENLESS_CSRF_PROTECTION to config for testing anti_csrf_nonce
1 parent 8bb58cd commit 86052cc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/test_templating.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ def setUp(self):
103103
self.client.db.getuid = lambda : 10
104104
self.client.db.config = MockConfig (
105105
{'WEB_CSRF_TOKEN_LIFETIME': 10,
106-
'MARKDOWN_BREAK_ON_NEWLINE': False })
106+
'MARKDOWN_BREAK_ON_NEWLINE': False,
107+
'WEB_USE_TOKENLESS_CSRF_PROTECTION': False})
107108

108109
class HTMLDatabaseTestCase(TemplatingTestCase):
109110
def test_HTMLDatabase___getitem__(self):

0 commit comments

Comments
 (0)