diff options
Diffstat (limited to 'tests/test_matching.py')
-rw-r--r-- | tests/test_matching.py | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/tests/test_matching.py b/tests/test_matching.py index 8d70d15..1702792 100644 --- a/tests/test_matching.py +++ b/tests/test_matching.py @@ -1,15 +1,22 @@ -from fuzzycat.matching import anything_to_entity, match_release_fuzzy -from fuzzycat.entities import entity_from_dict -from fatcat_openapi_client import ReleaseEntity -import pytest -import elasticsearch import logging +import warnings + +import elasticsearch +import pytest +import requests from dynaconf import Dynaconf +from fatcat_openapi_client import ReleaseEntity + +from fuzzycat.entities import entity_from_dict +from fuzzycat.matching import anything_to_entity, match_release_fuzzy + +warnings.filterwarnings("ignore") # InsecureRequestWarning: Unverified HTTPS request is being made to host ... logger = logging.getLogger('test_matching') logger.setLevel(logging.DEBUG) settings = Dynaconf(envvar_prefix="FUZZYCAT") +# ad-hoc override search server with: FUZZYCAT_FATCAT_SEARCH_URL=localhost:9200 pytest ... FATCAT_SEARCH_URL = settings.get("FATCAT_SEARCH_URL", "https://search.fatcat.wiki:443") |