Skip to content

Commit 3af645f

Browse files
chore: constants dep on version of app, which depends on environment
1 parent 5bcb3af commit 3af645f

File tree

1 file changed

+54
-24
lines changed

1 file changed

+54
-24
lines changed

tests/constants_test.py

Lines changed: 54 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,6 @@
99
SPOT_0_GS_URL = "gs://platform-api-application-test-data/heta/slides/8fafc17d-a5cc-4e9d-a982-030b1486ca88.tiff"
1010
SPOT_0_FILENAME = "8fafc17d-a5cc-4e9d-a982-030b1486ca88.tiff"
1111
SPOT_0_FILESIZE = 10562338
12-
SPOT_0_EXPECTED_RESULT_FILES = [
13-
("tissue_qc_segmentation_map_image.tiff", 1540764, 10),
14-
("tissue_qc_geojson_polygons.json", 160668, 10),
15-
("tissue_segmentation_geojson_polygons.json", 853784, 10),
16-
("readout_generation_slide_readouts.csv", 302252, 10),
17-
("readout_generation_cell_readouts.csv", 1472661, 10),
18-
("cell_classification_geojson_polygons.json", 9939791, 10),
19-
("tissue_segmentation_segmentation_map_image.tiff", 2807584, 10),
20-
("tissue_segmentation_csv_class_information.csv", 451, 10),
21-
("tissue_qc_csv_class_information.csv", 284, 10),
22-
]
23-
24-
SPOT_0_EXPECTED_CELLS_CLASSIFIED = (35160, 10)
2512
SPOT_0_CRC32C = "5onqtA=="
2613
SPOT_0_RESOLUTION_MPP = 0.26268186053789266
2714
SPOT_0_WIDTH = 7447
@@ -30,17 +17,6 @@
3017
SPOT_1_GS_URL = "gs://aignx-storage-service-dev/sample_data_formatted/9375e3ed-28d2-4cf3-9fb9-8df9d11a6627.tiff"
3118
SPOT_1_FILENAME = "9375e3ed-28d2-4cf3-9fb9-8df9d11a6627.tiff"
3219
SPOT_1_FILESIZE = 14681750
33-
SPOT_1_EXPECTED_RESULT_FILES = [
34-
("tissue_qc_segmentation_map_image.tiff", 464908, 10),
35-
("tissue_qc_geojson_polygons.json", 180522, 10),
36-
("tissue_segmentation_geojson_polygons.json", 270931, 10),
37-
("readout_generation_slide_readouts.csv", 295268, 10),
38-
("readout_generation_cell_readouts.csv", 2228907, 10),
39-
("cell_classification_geojson_polygons.json", 16054058, 10),
40-
("tissue_segmentation_segmentation_map_image.tiff", 581258, 10),
41-
("tissue_segmentation_csv_class_information.csv", 342, 10),
42-
("tissue_qc_csv_class_information.csv", 232, 10),
43-
]
4420
SPOT_1_CRC32C = "9l3NNQ=="
4521
SPOT_1_WIDTH = 3728
4622
SPOT_1_HEIGHT = 3640
@@ -68,12 +44,66 @@
6844

6945
HETA_APPLICATION_ID = "he-tme"
7046
HETA_APPLICATION_VERSION = "1.0.0-sl.1"
47+
48+
SPOT_0_EXPECTED_RESULT_FILES = [
49+
("tissue_qc_segmentation_map_image.tiff", 1540764, 10),
50+
("tissue_qc_geojson_polygons.json", 160668, 10),
51+
("tissue_segmentation_geojson_polygons.json", 853784, 10),
52+
("readout_generation_slide_readouts.csv", 302252, 10),
53+
("readout_generation_cell_readouts.csv", 1472661, 10),
54+
("cell_classification_geojson_polygons.json", 9939791, 10),
55+
("tissue_segmentation_segmentation_map_image.tiff", 2807584, 10),
56+
("tissue_segmentation_csv_class_information.csv", 451, 10),
57+
("tissue_qc_csv_class_information.csv", 284, 10),
58+
]
59+
60+
SPOT_0_EXPECTED_CELLS_CLASSIFIED = (35160, 10)
61+
62+
SPOT_1_EXPECTED_RESULT_FILES = [
63+
("tissue_qc_segmentation_map_image.tiff", 464908, 10),
64+
("tissue_qc_geojson_polygons.json", 180522, 10),
65+
("tissue_segmentation_geojson_polygons.json", 270931, 10),
66+
("readout_generation_slide_readouts.csv", 295268, 10),
67+
("readout_generation_cell_readouts.csv", 2228907, 10),
68+
("cell_classification_geojson_polygons.json", 16054058, 10),
69+
("tissue_segmentation_segmentation_map_image.tiff", 581258, 10),
70+
("tissue_segmentation_csv_class_information.csv", 342, 10),
71+
("tissue_qc_csv_class_information.csv", 232, 10),
72+
]
73+
7174
case "staging":
7275
TEST_APPLICATION_ID = "test-app"
7376
TEST_APPLICATION_VERSION = "0.0.5"
7477

7578
HETA_APPLICATION_ID = "he-tme"
7679
HETA_APPLICATION_VERSION = "1.0.0-sl.1"
80+
81+
SPOT_0_EXPECTED_RESULT_FILES = [
82+
("tissue_qc_segmentation_map_image.tiff", 1540764, 10),
83+
("tissue_qc_geojson_polygons.json", 160668, 10),
84+
("tissue_segmentation_geojson_polygons.json", 853784, 10),
85+
("readout_generation_slide_readouts.csv", 302252, 10),
86+
("readout_generation_cell_readouts.csv", 1472661, 10),
87+
("cell_classification_geojson_polygons.json", 9939791, 10),
88+
("tissue_segmentation_segmentation_map_image.tiff", 2807584, 10),
89+
("tissue_segmentation_csv_class_information.csv", 451, 10),
90+
("tissue_qc_csv_class_information.csv", 284, 10),
91+
]
92+
93+
SPOT_0_EXPECTED_CELLS_CLASSIFIED = (35160, 10)
94+
95+
SPOT_1_EXPECTED_RESULT_FILES = [
96+
("tissue_qc_segmentation_map_image.tiff", 464908, 10),
97+
("tissue_qc_geojson_polygons.json", 180522, 10),
98+
("tissue_segmentation_geojson_polygons.json", 270931, 10),
99+
("readout_generation_slide_readouts.csv", 295268, 10),
100+
("readout_generation_cell_readouts.csv", 2228907, 10),
101+
("cell_classification_geojson_polygons.json", 16054058, 10),
102+
("tissue_segmentation_segmentation_map_image.tiff", 581258, 10),
103+
("tissue_segmentation_csv_class_information.csv", 342, 10),
104+
("tissue_qc_csv_class_information.csv", 232, 10),
105+
]
106+
77107
case _:
78108
message = f"Unsupported AIGNOSTICS_PLATFORM_ENVIRONMENT value: {os.getenv('AIGNOSTICS_PLATFORM_ENVIRONMENT')}"
79109
raise ValueError(message)

0 commit comments

Comments
 (0)