WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit fa13ee4

Browse files
committed
fix and rename tests
1 parent a81e93d commit fa13ee4

File tree

6 files changed

+9
-15
lines changed

6 files changed

+9
-15
lines changed

pixi.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ test-scene-data-source-queries="pixi run install-pygssearch-env && export PYGSSE
100100
# Tests require credentials - not currently setup for github but should be run locally before PRs
101101
test-isce3-rtc = "pytest tests/sar_pipeline/isce3_rtc -o log_cli=true --capture=tee-sys --log-cli-level=INFO -v -s"
102102
test-isce3-rtc-full-docker-run = "pytest tests/sar_pipeline/isce3_rtc/test_full_docker_build_and_run.py -o log_cli=true --capture=tee-sys --log-cli-level=INFO -v -s"
103+
test-isce3-burst-utils = "pytest tests/sar_pipeline/isce3_rtc/test_burst_utils.py -o log_cli=true --capture=tee-sys --log-cli-level=INFO -v -s"
103104
test-isce3-rtc-cli-make-rtc-opera-stac-and-upload-bursts = "pytest tests/sar_pipeline/isce3_rtc/test_cli_make_rtc_opera_stac_and_upload_bursts.py -o log_cli=true --capture=tee-sys --log-cli-level=INFO -v -s"
105+
test-isce3-rtc-cli-get-data-for-scene-and-make-run-config= "pytest tests/sar_pipeline/isce3_rtc/test_cli_get_data_for_scene_and_make_run_config.py -o log_cli=true --capture=tee-sys --log-cli-level=INFO -v -s"
104106
test-isce3-rtc-downloads= "pixi run install-pygssearch-env && export PYGSSEARCH_CONDA_ENV='$(conda info --base)/envs/pygssearch-env' && pytest tests/sar_pipeline/isce3_rtc/test_downloads.py -o log_cli=true --capture=tee-sys --log-cli-level=INFO -v -s"
105107

106108
### NCI Pipeline Tests ###

sar_pipeline/pipelines/isce3_rtc/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,7 @@ def compare_products(
11571157
tifs_are_same, stats = compare_cog_stats(tif_1, tif_2)
11581158
tif_comparison_stats[filetype] = stats
11591159
else:
1160-
tif_2 = [x for x in tif_files_2 if filetype in x]
1160+
tif_2 = [x for x in tif_files_2 if str(filetype) in str(x)]
11611161
if not tif_2:
11621162
logger.warning(
11631163
f'Could not find tif of same filetype "{filetype}" to compare with {tif_1}'

tests/sar_pipeline/isce3_rtc/test_cli_make_rtc_opera_stac_and_upload_bursts.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737

3838
@dataclass
3939
class RunConfig:
40+
scene: str
4041
test_product_s3_bucket: Path
4142
test_product_s3_folder: Path
4243
original_local_product_folder: Path
@@ -59,6 +60,7 @@ class RunConfig:
5960
from settings import (
6061
CURRENT_DIR,
6162
TEST_S3_BUCKET,
63+
TEST_1_SCENE,
6264
TEST_1_COLLECTION_NUMBER,
6365
TEST_1_BURST,
6466
TEST_1_COMPARE_RTC_S1_S3_PROJECT_FOLDER,
@@ -79,6 +81,7 @@ class RunConfig:
7981
# PERSISTENT_S3_PROJECT_FOLDER = "experimental/baseline/antarctica"
8082

8183
TEST_1 = RunConfig(
84+
scene=TEST_1_SCENE,
8285
test_product_s3_bucket=TEST_S3_BUCKET,
8386
test_product_s3_folder=TEST_1_COMPARE_RTC_S1_S3_PROJECT_FOLDER,
8487
original_local_product_folder=f"{ORIGINAL_PRODUCT_RESULTS_DIR}/TEST_1/RTC_S1/{TEST_1_BURST}",
@@ -134,6 +137,7 @@ def test_cli_make_rtc_opera_stac_and_upload_bursts(test_run):
134137

135138
runner = CliRunner()
136139
args = ["--results-folder", results_folder]
140+
args += ["--scene", test_run.scene]
137141
args += ["--run-config-path", run_config]
138142
args += ["--product", test_run.product]
139143
args += ["--backscatter-convention", test_run.backscatter_convention]
@@ -143,18 +147,6 @@ def test_cli_make_rtc_opera_stac_and_upload_bursts(test_run):
143147
args += ["--skip-upload-to-s3"] if test_run.skip_upload_to_s3 else []
144148
args += ["--make-existing-products"] if test_run.make_existing_products else []
145149
args += ["--link-static-layers"] if test_run.link_static_layers else []
146-
args += [
147-
"--linked-static-layers-s3-bucket",
148-
test_run.linked_static_layers_s3_bucket,
149-
]
150-
args += [
151-
"--linked-static-layers-collection-number",
152-
test_run.linked_static_layers_collection_number,
153-
]
154-
args += [
155-
"--linked-static-layers-s3-project-folder",
156-
test_run.linked_static_layers_s3_project_folder,
157-
]
158150
args += ["--validate-stac"] if test_run.validate_stac else []
159151

160152
logging.info(f"Running make_rtc_opera_stac_and_upload_bursts.")

0 commit comments

Comments
 (0)