summaryrefslogtreecommitdiff
path: root/service/test/support/integration/app_test_client.py
diff options
context:
space:
mode:
authorRoald de Vries <rdevries@thoughtworks.com>2016-12-01 10:36:29 +0100
committerRoald de Vries <rdevries@thoughtworks.com>2016-12-01 10:36:39 +0100
commit770b439c8495c3a0b16550c2f04740f31646d66b (patch)
tree46ed7570ed1b742aca55c22f3efa5532a861cbee /service/test/support/integration/app_test_client.py
parent13378255c02b97184132881599ed47826963f54a (diff)
WIP: add csrf token to every request
Diffstat (limited to 'service/test/support/integration/app_test_client.py')
-rw-r--r--service/test/support/integration/app_test_client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/test/support/integration/app_test_client.py b/service/test/support/integration/app_test_client.py
index d52c85c0..ee5a1df2 100644
--- a/service/test/support/integration/app_test_client.py
+++ b/service/test/support/integration/app_test_client.py
@@ -387,8 +387,8 @@ class AppTestClient(object):
return res
# TODO: remove
- def delete_mail(self, mail_ident):
- res, req = self.delete("/mail/%s" % mail_ident)
+ def delete_mail(self, mail_ident, csrf='token'):
+ res, req = self.delete("/mail/%s" % mail_ident, csrf=csrf)
return res
def delete_mails(self, idents):