Skip to content

Commit 797476a

Browse files
committed
IFRC Event(Testcase): update the test case and cassettes
1 parent 44c6301 commit 797476a

5 files changed

+30
-30
lines changed

tests/extensions/cassettes/test_ifrc_events/IfrcEventsTest.test_transformer_with_file_data_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-
- '480'
158+
- '0'
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-
- Fri, 07 Nov 2025 04:59:06 GMT
168+
- Wed, 12 Nov 2025 10:33:49 GMT
169169
ETag:
170170
- '"690c54cc-2899"'
171171
Last-Modified:
@@ -181,15 +181,15 @@ interactions:
181181
X-Cache-Hits:
182182
- '0'
183183
X-Fastly-Request-ID:
184-
- c44d34da03aa93e3b43a8c99fe825e7580a6d2ac
184+
- 2a0f7d61579bc33c2c855829f5f26b2aa189edbf
185185
X-GitHub-Request-Id:
186-
- 6A35:283A41:5B6C3:6C630:690C5C7B
186+
- 9A3E:2F62DB:5BE57:72BDD:69141429
187187
X-Served-By:
188-
- cache-bom-vanm7210098-BOM
188+
- cache-del21742-DEL
189189
X-Timer:
190-
- S1762491547.777816,VS0,VE1
190+
- S1762943629.974474,VS0,VE271
191191
expires:
192-
- Thu, 06 Nov 2025 08:39:48 GMT
192+
- Wed, 12 Nov 2025 05:09:22 GMT
193193
x-proxy-cache:
194194
- MISS
195195
status:

tests/extensions/cassettes/test_ifrc_events/IfrcEventsTest.test_transformer_with_file_data_1.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-
- '480'
158+
- '0'
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-
- Fri, 07 Nov 2025 04:59:06 GMT
168+
- Wed, 12 Nov 2025 10:33:49 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-
- fdd6002be8bcb5a36999727be64b295ef4fc93d3
184+
- dcabf3d0faa91c24cab24ed9d19fcf35e164892e
185185
X-GitHub-Request-Id:
186-
- 6A35:283A41:5B6C3:6C630:690C5C7B
186+
- 9A3E:2F62DB:5BE57:72BDD:69141429
187187
X-Served-By:
188-
- cache-bom-vanm7210022-BOM
188+
- cache-del21720-DEL
189189
X-Timer:
190-
- S1762491547.971764,VS0,VE1
190+
- S1762943629.394333,VS0,VE1
191191
expires:
192-
- Thu, 06 Nov 2025 08:39:48 GMT
192+
- Wed, 12 Nov 2025 05:09:22 GMT
193193
x-proxy-cache:
194194
- MISS
195195
status:

tests/extensions/cassettes/test_ifrc_events/IfrcEventsTest.test_transformer_with_memory_data_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-
- '480'
158+
- '0'
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-
- Fri, 07 Nov 2025 04:59:07 GMT
168+
- Wed, 12 Nov 2025 10:33: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-
- '2'
182+
- '1'
183183
X-Fastly-Request-ID:
184-
- 5e0f48febb3c0b2820f07beabf2944965b92e285
184+
- 9c841d1058365e084480accdc11254ace7844780
185185
X-GitHub-Request-Id:
186-
- 6A35:283A41:5B6C3:6C630:690C5C7B
186+
- 9A3E:2F62DB:5BE57:72BDD:69141429
187187
X-Served-By:
188-
- cache-bom-vanm7210069-BOM
188+
- cache-del21738-DEL
189189
X-Timer:
190-
- S1762491547.164061,VS0,VE1
190+
- S1762943630.543044,VS0,VE2
191191
expires:
192-
- Thu, 06 Nov 2025 08:39:48 GMT
192+
- Wed, 12 Nov 2025 05:09:22 GMT
193193
x-proxy-cache:
194194
- MISS
195195
status:

tests/extensions/cassettes/test_ifrc_events/IfrcEventsTest.test_transformer_with_memory_data_1.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-
- '481'
158+
- '0'
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-
- Fri, 07 Nov 2025 04:59:07 GMT
168+
- Wed, 12 Nov 2025 10:33:49 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-
- d4cb887bfbe065d146543b748c3abcfa22c33657
184+
- f8ccab5f997b7d4bf156b16c0ac5f52fa34c6802
185185
X-GitHub-Request-Id:
186-
- 6A35:283A41:5B6C3:6C630:690C5C7B
186+
- 9A3E:2F62DB:5BE57:72BDD:69141429
187187
X-Served-By:
188-
- cache-bom-vanm7210036-BOM
188+
- cache-del21739-DEL
189189
X-Timer:
190-
- S1762491547.354810,VS0,VE1
190+
- S1762943630.690064,VS0,VE4
191191
expires:
192-
- Thu, 06 Nov 2025 08:39:48 GMT
192+
- Wed, 12 Nov 2025 05:09:22 GMT
193193
x-proxy-cache:
194194
- MISS
195195
status:

tests/extensions/test_ifrc_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def test_ifrc_event_item_has_all_codes(self, transformer: IFRCEventTransformer):
232232
event_item = items[0]
233233

234234
monty = MontyExtension.ext(event_item)
235-
assert monty.hazard_codes == ["GH0101", "nat-geo-ear-gro", "EQ"]
235+
assert monty.hazard_codes == ["GH0101", "EQ", "nat-geo-ear-gro"]
236236

237237
@parameterized.expand(load_scenarios([scenarios[0]]))
238238
def test_ifrc_event_item_keywords(self, transformer: IFRCEventTransformer):

0 commit comments

Comments
 (0)