From 3ded3061d20ff35e68f84d855ac56438b283e91f Mon Sep 17 00:00:00 2001 From: Alex Bednarek Date: Mon, 29 Jul 2024 14:20:22 -0700 Subject: [PATCH] API: minor comments/cleanup. --- api/datalake_api/v0.py | 5 +++++ api/tests/test_archive_querier.py | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) 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