Skip to content

Commit 47d00fc

Browse files
ari-nzclaude
andcommitted
chore(tests): use None sentinel for SPECIAL_APPLICATION on staging
Simpler than a try/except guard: staging defines SPECIAL_APPLICATION_ID and SPECIAL_APPLICATION_VERSION as None, the regular import works, and the existing skipif(SPECIAL_APPLICATION_ID is None) handles the rest. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent e84f973 commit 47d00fc

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

tests/aignostics/platform/e2e_test.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
PIPELINE_GPU_TYPE,
3737
PIPELINE_MAX_GPUS_PER_SLIDE,
3838
PIPELINE_NODE_ACQUISITION_TIMEOUT_MINUTES,
39+
SPECIAL_APPLICATION_ID,
40+
SPECIAL_APPLICATION_VERSION,
3941
SPOT_0_CRC32C,
4042
SPOT_0_GS_URL,
4143
SPOT_0_HEIGHT,
@@ -60,12 +62,6 @@
6062
TEST_APPLICATION_VERSION,
6163
)
6264

63-
try:
64-
from tests.constants_test import SPECIAL_APPLICATION_ID, SPECIAL_APPLICATION_VERSION
65-
except ImportError:
66-
SPECIAL_APPLICATION_ID = None # type: ignore[assignment]
67-
SPECIAL_APPLICATION_VERSION = None # type: ignore[assignment]
68-
6965
TEST_APPLICATION_SUBMIT_AND_WAIT_DEADLINE_SECONDS = 60 * 45 # 45 minutes
7066
TEST_APPLICATION_SUBMIT_AND_WAIT_DUE_DATE_SECONDS = 60 * 10 # 10 minutes
7167
TEST_APPLICATION_SUBMIT_AND_WAIT_TIMEOUT_SECONDS = (

tests/constants_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@
108108
PIPELINE_CPU_PROVISIONING_MODE = "SPOT"
109109
PIPELINE_NODE_ACQUISITION_TIMEOUT_MINUTES = 30
110110

111+
SPECIAL_APPLICATION_ID = None
112+
SPECIAL_APPLICATION_VERSION = None
113+
111114
SPOT_0_EXPECTED_RESULT_FILES = [
112115
("tissue_qc_segmentation_map_image.tiff", 1642856, 10),
113116
("tissue_qc_geojson_polygons.json", 259955, 10),

0 commit comments

Comments
 (0)