diff options
author | bnewbold <bnewbold@archive.org> | 2020-07-24 17:25:35 +0000 |
---|---|---|
committer | bnewbold <bnewbold@archive.org> | 2020-07-24 17:25:35 +0000 |
commit | 655de9edfb4fab6c861332bf60e02adf67ebfac6 (patch) | |
tree | 5053f9790f5adbab75c010bed988fe3c09838785 /python/tests/fixtures.py | |
parent | 8b00843af1366cf019c896057706ace4afff27ba (diff) | |
parent | 7010abf54fae6a04f4a0700651e64a1fe5b5b2c8 (diff) | |
download | fatcat-655de9edfb4fab6c861332bf60e02adf67ebfac6.tar.gz fatcat-655de9edfb4fab6c861332bf60e02adf67ebfac6.zip |
Merge branch 'bnewbold-es-refactor' into 'master'
web ES search refactor
See merge request webgroup/fatcat!68
Diffstat (limited to 'python/tests/fixtures.py')
-rw-r--r-- | python/tests/fixtures.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/tests/fixtures.py b/python/tests/fixtures.py index 44c7be63..3263f243 100644 --- a/python/tests/fixtures.py +++ b/python/tests/fixtures.py @@ -1,9 +1,10 @@ import pytest from dotenv import load_dotenv +import elasticsearch + import fatcat_web import fatcat_openapi_client - from fatcat_openapi_client import * from fatcat_tools import authenticated_api @@ -13,6 +14,7 @@ def full_app(): fatcat_web.app.testing = True fatcat_web.app.debug = False fatcat_web.app.config['WTF_CSRF_ENABLED'] = False + fatcat_web.app.es_client = elasticsearch.Elasticsearch("mockbackend") return fatcat_web.app @pytest.fixture |