diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-04-04 17:50:05 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-04-04 17:50:05 -0700 |
commit | 1e93397f1a757cc4b6c566c6827f5151d88a8461 (patch) | |
tree | 891ff64aa4730569298f9eeffd1faa429de34358 /python | |
parent | ed5712b17ac818862c7ae9316f2fac05b5b9a51a (diff) | |
download | fatcat-1e93397f1a757cc4b6c566c6827f5151d88a8461.tar.gz fatcat-1e93397f1a757cc4b6c566c6827f5151d88a8461.zip |
disable CSRF in unit tests
Diffstat (limited to 'python')
-rw-r--r-- | python/tests/fixtures.py | 1 |
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 |