Skip to content

Commit

Permalink
Set venue environment variable before running test of query_cmr
Browse files Browse the repository at this point in the history
  • Loading branch information
nikki-t committed Oct 14, 2024
1 parent 5a58d6d commit 2e2bf8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_track_ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ def test_query_cmr(mock_ssm):
Uses vcrpy to record CMR API response.
"""
os.environ['HYDROCRON_ENV'] = 'OPS'
from hydrocron.db.track_ingest import Track

collection_shortname = "SWOT_L2_HR_RiverSP_reach_2.0"
collection_start_date = datetime.datetime.strptime("20240630", "%Y%m%d").replace(tzinfo=datetime.timezone.utc)
track = Track(collection_shortname, collection_start_date)
track.query_start = datetime.datetime(2024, 6, 30, 0, 0, 0, tzinfo=datetime.timezone.utc)
track.query_end = datetime.datetime(2024, 6, 30, 12, 0, 0, tzinfo=datetime.timezone.utc)
track.ENV = "OPS"

vcr_cassette = pathlib.Path(os.path.dirname(os.path.realpath(__file__))) \
.joinpath('vcr_cassettes').joinpath('cmr_query.yaml')
Expand Down

0 comments on commit 2e2bf8b

Please sign in to comment.