diff --git a/api/datalake_api/v0.py b/api/datalake_api/v0.py index 3520512..c1aad72 100644 --- a/api/datalake_api/v0.py +++ b/api/datalake_api/v0.py @@ -49,6 +49,11 @@ def get_dynamodb(): def get_archive_querier(): + """ + we use global var here along with reset_archive_querier() + to allow test fixture to differentiate between + ArchiveQuerier vs HttpQuerier fixtures. + """ global _archive_querier if not _archive_querier: diff --git a/api/tests/test_archive_querier.py b/api/tests/test_archive_querier.py index e5aca16..d9cf7da 100644 --- a/api/tests/test_archive_querier.py +++ b/api/tests/test_archive_querier.py @@ -15,7 +15,6 @@ import pytest from datalake_api.v0 import reset_archive_querier from datalake_api import settings -# from flask import current_app as app from datalake.common import DatalakeRecord from datalake.tests import generate_random_metadata import simplejson as json