Skip to content

Commit 70abea9

Browse files
committed
IDMC(Test case): update the methods and cassettes
1 parent 1271436 commit 70abea9

8 files changed

+50
-50
lines changed

tests/extensions/cassettes/test_gidd/GIDDTest.test_event_item_uses_all_codes_0.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ interactions:
155155
Access-Control-Allow-Origin:
156156
- '*'
157157
Age:
158-
- '0'
158+
- '554'
159159
Cache-Control:
160160
- max-age=600
161161
Connection:
@@ -165,7 +165,7 @@ interactions:
165165
Content-Type:
166166
- application/json; charset=utf-8
167167
Date:
168-
- Mon, 10 Nov 2025 06:46:39 GMT
168+
- Tue, 11 Nov 2025 06:23:47 GMT
169169
ETag:
170170
- '"690c54cc-2899"'
171171
Last-Modified:
@@ -177,19 +177,19 @@ interactions:
177177
Via:
178178
- 1.1 varnish
179179
X-Cache:
180-
- MISS
180+
- HIT
181181
X-Cache-Hits:
182-
- '0'
182+
- '2'
183183
X-Fastly-Request-ID:
184-
- 51a8f56cb21108029d7268a8b7ea997606aead65
184+
- 9587bee7495436db5efc9a0eb2d79102ad67ce8b
185185
X-GitHub-Request-Id:
186-
- DE52:20600D:2F487C:36681A:69118A4F
186+
- 8FE8:3C902F:4F53A1:584B0A:6912B97C
187187
X-Served-By:
188-
- cache-del21748-DEL
188+
- cache-del21740-DEL
189189
X-Timer:
190-
- S1762757199.259390,VS0,VE246
190+
- S1762842227.022353,VS0,VE0
191191
expires:
192-
- Mon, 10 Nov 2025 06:56:39 GMT
192+
- Tue, 11 Nov 2025 04:30:12 GMT
193193
x-proxy-cache:
194194
- MISS
195195
status:

tests/extensions/cassettes/test_gidd/GIDDTest.test_transformer_0.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ interactions:
155155
Access-Control-Allow-Origin:
156156
- '*'
157157
Age:
158-
- '1'
158+
- '555'
159159
Cache-Control:
160160
- max-age=600
161161
Connection:
@@ -165,7 +165,7 @@ interactions:
165165
Content-Type:
166166
- application/json; charset=utf-8
167167
Date:
168-
- Mon, 10 Nov 2025 06:46:40 GMT
168+
- Tue, 11 Nov 2025 06:23:48 GMT
169169
ETag:
170170
- '"690c54cc-2899"'
171171
Last-Modified:
@@ -179,17 +179,17 @@ interactions:
179179
X-Cache:
180180
- HIT
181181
X-Cache-Hits:
182-
- '1'
182+
- '0'
183183
X-Fastly-Request-ID:
184-
- 61e343561da9af8248de55ececef2e8de8366cef
184+
- dd64ad3ab514dbba97822ca0b05bf7ec6eca991c
185185
X-GitHub-Request-Id:
186-
- DE52:20600D:2F487C:36681A:69118A4F
186+
- 8FE8:3C902F:4F53A1:584B0A:6912B97C
187187
X-Served-By:
188-
- cache-del21720-DEL
188+
- cache-del21730-DEL
189189
X-Timer:
190-
- S1762757201.742440,VS0,VE1
190+
- S1762842228.240673,VS0,VE2
191191
expires:
192-
- Mon, 10 Nov 2025 06:56:39 GMT
192+
- Tue, 11 Nov 2025 04:30:12 GMT
193193
x-proxy-cache:
194194
- MISS
195195
status:

tests/extensions/cassettes/test_gidd/GIDDTest.test_transformer_from_file_0.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ interactions:
155155
Access-Control-Allow-Origin:
156156
- '*'
157157
Age:
158-
- '3'
158+
- '556'
159159
Cache-Control:
160160
- max-age=600
161161
Connection:
@@ -165,7 +165,7 @@ interactions:
165165
Content-Type:
166166
- application/json; charset=utf-8
167167
Date:
168-
- Mon, 10 Nov 2025 06:46:42 GMT
168+
- Tue, 11 Nov 2025 06:23:49 GMT
169169
ETag:
170170
- '"690c54cc-2899"'
171171
Last-Modified:
@@ -179,17 +179,17 @@ interactions:
179179
X-Cache:
180180
- HIT
181181
X-Cache-Hits:
182-
- '1'
182+
- '3'
183183
X-Fastly-Request-ID:
184-
- cb8a9652bb830d74037b37dcfce0cc1177de4a69
184+
- 8ec683976890ea6581faf58f4d8b2b9c926fff94
185185
X-GitHub-Request-Id:
186-
- DE52:20600D:2F487C:36681A:69118A4F
186+
- 8FE8:3C902F:4F53A1:584B0A:6912B97C
187187
X-Served-By:
188-
- cache-del21734-DEL
188+
- cache-del21740-DEL
189189
X-Timer:
190-
- S1762757202.170097,VS0,VE2
190+
- S1762842230.533525,VS0,VE0
191191
expires:
192-
- Mon, 10 Nov 2025 06:56:39 GMT
192+
- Tue, 11 Nov 2025 04:30:12 GMT
193193
x-proxy-cache:
194194
- MISS
195195
status:

tests/extensions/cassettes/test_idu/IDUTest.test_event_item_uses_all_codes_0.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ interactions:
155155
Access-Control-Allow-Origin:
156156
- '*'
157157
Age:
158-
- '0'
158+
- '557'
159159
Cache-Control:
160160
- max-age=600
161161
Connection:
@@ -165,7 +165,7 @@ interactions:
165165
Content-Type:
166166
- application/json; charset=utf-8
167167
Date:
168-
- Sun, 09 Nov 2025 16:19:44 GMT
168+
- Tue, 11 Nov 2025 06:23:50 GMT
169169
ETag:
170170
- '"690c54cc-2899"'
171171
Last-Modified:
@@ -179,17 +179,17 @@ interactions:
179179
X-Cache:
180180
- HIT
181181
X-Cache-Hits:
182-
- '0'
182+
- '1'
183183
X-Fastly-Request-ID:
184-
- 66f097f15a1e329d75894dfb1ac648d06b44c3d8
184+
- 983200632d34d8263d31e02deaf55cdb552f219e
185185
X-GitHub-Request-Id:
186-
- 0E16:31769E:1B2E02:20B809:6910B6D7
186+
- 8FE8:3C902F:4F53A1:584B0A:6912B97C
187187
X-Served-By:
188-
- cache-maa10221-MAA
188+
- cache-del21739-DEL
189189
X-Timer:
190-
- S1762705184.030066,VS0,VE216
190+
- S1762842231.758127,VS0,VE2
191191
expires:
192-
- Sun, 09 Nov 2025 15:54:24 GMT
192+
- Tue, 11 Nov 2025 04:30:12 GMT
193193
x-proxy-cache:
194194
- MISS
195195
status:

tests/extensions/cassettes/test_idu/IDUTest.test_transformer_0.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ interactions:
155155
Access-Control-Allow-Origin:
156156
- '*'
157157
Age:
158-
- '1'
158+
- '557'
159159
Cache-Control:
160160
- max-age=600
161161
Connection:
@@ -165,7 +165,7 @@ interactions:
165165
Content-Type:
166166
- application/json; charset=utf-8
167167
Date:
168-
- Sun, 09 Nov 2025 16:19:44 GMT
168+
- Tue, 11 Nov 2025 06:23:51 GMT
169169
ETag:
170170
- '"690c54cc-2899"'
171171
Last-Modified:
@@ -179,17 +179,17 @@ interactions:
179179
X-Cache:
180180
- HIT
181181
X-Cache-Hits:
182-
- '1'
182+
- '2'
183183
X-Fastly-Request-ID:
184-
- fbb0316ba70c4bc0b66cbac701983ea10bb10013
184+
- 4745f33cd5d6e6c19a8779e05cd0f5312d3bd3c7
185185
X-GitHub-Request-Id:
186-
- 0E16:31769E:1B2E02:20B809:6910B6D7
186+
- 8FE8:3C902F:4F53A1:584B0A:6912B97C
187187
X-Served-By:
188-
- cache-maa10224-MAA
188+
- cache-del21726-DEL
189189
X-Timer:
190-
- S1762705185.906359,VS0,VE1
190+
- S1762842231.276653,VS0,VE0
191191
expires:
192-
- Sun, 09 Nov 2025 15:54:24 GMT
192+
- Tue, 11 Nov 2025 04:30:12 GMT
193193
x-proxy-cache:
194194
- MISS
195195
status:

tests/extensions/cassettes/test_idu/IDUTest.test_transformer_from_file_0.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ interactions:
155155
Access-Control-Allow-Origin:
156156
- '*'
157157
Age:
158-
- '1'
158+
- '558'
159159
Cache-Control:
160160
- max-age=600
161161
Connection:
@@ -165,7 +165,7 @@ interactions:
165165
Content-Type:
166166
- application/json; charset=utf-8
167167
Date:
168-
- Sun, 09 Nov 2025 16:19:45 GMT
168+
- Tue, 11 Nov 2025 06:23:51 GMT
169169
ETag:
170170
- '"690c54cc-2899"'
171171
Last-Modified:
@@ -181,15 +181,15 @@ interactions:
181181
X-Cache-Hits:
182182
- '1'
183183
X-Fastly-Request-ID:
184-
- 0cd88c02ef2d0e26f407496af0157d4c2e2deb62
184+
- b15c6cf33cc0055d1f6c66623886b223d2a7fee7
185185
X-GitHub-Request-Id:
186-
- 0E16:31769E:1B2E02:20B809:6910B6D7
186+
- 8FE8:3C902F:4F53A1:584B0A:6912B97C
187187
X-Served-By:
188-
- cache-maa10231-MAA
188+
- cache-del21747-DEL
189189
X-Timer:
190-
- S1762705186.570981,VS0,VE2
190+
- S1762842232.791411,VS0,VE1
191191
expires:
192-
- Sun, 09 Nov 2025 15:54:24 GMT
192+
- Tue, 11 Nov 2025 04:30:12 GMT
193193
x-proxy-cache:
194194
- MISS
195195
status:

tests/extensions/test_gidd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def test_event_item_uses_all_codes(self, transformer: GIDDTransformer) -> None:
126126
assert len(monty_item_ext.hazard_codes) == 3
127127

128128
@pytest.mark.vcr()
129-
def test_gdacs_hazard_codes_2025(self) -> None:
129+
def test_hazard_codes_2025(self) -> None:
130130
assert IDMCUtils.hazard_codes_mapping(("weather related", "hydrological", "flood", "flood")) == [
131131
"MH0600",
132132
"nat-hyd-flo-flo",

tests/extensions/test_idu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def test_event_item_uses_all_codes(self, transformer: IDUTransformer) -> None:
119119
assert len(monty_item_ext.hazard_codes) == 3
120120

121121
@pytest.mark.vcr()
122-
def test_gdacs_hazard_codes_2025(self) -> None:
122+
def test_hazard_codes_2025(self) -> None:
123123
assert IDMCUtils.hazard_codes_mapping(("weather related", "hydrological", "flood", "flood")) == [
124124
"MH0600",
125125
"nat-hyd-flo-flo",

0 commit comments

Comments
 (0)