aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-04-04 17:50:05 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-04-04 17:50:05 -0700
commit1e93397f1a757cc4b6c566c6827f5151d88a8461 (patch)
tree891ff64aa4730569298f9eeffd1faa429de34358
parented5712b17ac818862c7ae9316f2fac05b5b9a51a (diff)
downloadfatcat-1e93397f1a757cc4b6c566c6827f5151d88a8461.tar.gz
fatcat-1e93397f1a757cc4b6c566c6827f5151d88a8461.zip
disable CSRF in unit tests
-rw-r--r--python/tests/fixtures.py1
1 files changed, 1 insertions, 0 deletions
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