aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-12-23 03:31:03 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-12-23 03:31:03 +0100
commit42415e0e7b272de9006123ea983a5b6bb8c5b4a7 (patch)
tree7c878ff8a1d382acc177b5b4a33ee926c906646a /tests
parent68dd0f00ff17ad9d2e1df2b28c1eb677bda4e450 (diff)
downloadfuzzycat-42415e0e7b272de9006123ea983a5b6bb8c5b4a7.tar.gz
fuzzycat-42415e0e7b272de9006123ea983a5b6bb8c5b4a7.zip
inject configuration
Diffstat (limited to 'tests')
-rw-r--r--tests/test_matching.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_matching.py b/tests/test_matching.py
index 9601bcb..7d8b7af 100644
--- a/tests/test_matching.py
+++ b/tests/test_matching.py
@@ -3,14 +3,18 @@ from fatcat_openapi_client import ReleaseEntity
import pytest
import elasticsearch
import logging
+from dynaconf import Dynaconf
logger = logging.getLogger('test_matching')
logger.setLevel(logging.DEBUG)
+settings = Dynaconf(envvar_prefix="FUZZYCAT")
+FATCAT_SEARCH_URL = settings.get("FATCAT_SEARCH_URL", "https://search.fatcat.wiki:443")
+
@pytest.fixture
def es_client():
- return elasticsearch.Elasticsearch(["https://search.fatcat.wiki:443"])
+ return elasticsearch.Elasticsearch([FATCAT_SEARCH_URL])
@pytest.mark.skip(reason="we cannot use POST on es, which client uses: https://git.io/JLssk")