Skip to content

Commit

Permalink
fix(integration-test): separate dswx-s1 tests
Browse files Browse the repository at this point in the history
Refs #705
  • Loading branch information
chrisjrd committed Mar 1, 2024
1 parent f6752fa commit 8d1e242
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from datetime import datetime, timedelta
from pathlib import Path

import dateutil
import pytest
from dateutil.parser import parse

logger = logging.getLogger(__name__)

Expand All @@ -24,7 +24,7 @@ async def test_subscriber_rtc_trigger_logic():
("MS_26_48", '20231101T113548Z')
]
for mgrs_set_id, acq_dts in mgrs_set_ids_dt:
dt = dateutil.parser.parse(acq_dts) #.strftime("%Y%m%dT%H%M%SZ")
dt = parse(acq_dts) #.strftime("%Y%m%dT%H%M%SZ")
if mgrs_set_id == "MS_74_46":
start_dt: datetime = dt - timedelta(minutes=2)
end_dt: datetime = dt + timedelta(minutes=2)
Expand All @@ -47,6 +47,7 @@ async def test_subscriber_rtc_trigger_logic():
"--transfer-protocol=https "
"--chunk-size=1 "
"--use-temporal "
"--job-queue=opera-job_worker-rtc_data_download "
""
],
cwd=Path.cwd(),
Expand Down
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@
"cachetools==5.2.0",
"geopandas",
"pyproj"

# for additional daac subscriber test utilities that are executed from pytest
# * DSWx-S1 trigger logic tests
"pytest==7.2.1",
"pytest-mock>=3.8.2",
"pytest-asyncio==0.20.3",
"pytest-cov==4.0.0",
],
"test": [
# The list of dependencies required to run tests locally.
Expand Down

0 comments on commit 8d1e242

Please sign in to comment.