Skip to content

Commit

Permalink
API: minor comments/cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
ABPLMC committed Jul 29, 2024
1 parent c13a6cd commit 3ded306
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions api/datalake_api/v0.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion api/tests/test_archive_querier.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ded306

Please sign in to comment.