From 1e93397f1a757cc4b6c566c6827f5151d88a8461 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 4 Apr 2019 17:50:05 -0700 Subject: disable CSRF in unit tests --- python/tests/fixtures.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/tests/fixtures.py b/python/tests/fixtures.py index b3dba19f..41673d8a 100644 --- a/python/tests/fixtures.py +++ b/python/tests/fixtures.py @@ -14,6 +14,7 @@ def full_app(): load_dotenv(dotenv_path="./example.env") fatcat_web.app.testing = True fatcat_web.app.debug = False + fatcat_web.app.config['WTF_CSRF_ENABLED'] = False return fatcat_web.app @pytest.fixture -- cgit v1.2.3