File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ def test_edge_endpoint_config_from_yaml_requires_exactly_one_input():
238238def test_edge_endpoint_config_ignores_extra_fields_at_all_levels ():
239239 """Unknown fields are silently ignored at every nesting level for forward compatibility."""
240240 config = EdgeEndpointConfig .model_validate ({
241- "global_config" : {"refresh_rate" : 30.0 , "unknown_global_field" : "ignored" },
241+ "global_config" : {"refresh_rate" : REFRESH_RATE_SECONDS , "unknown_global_field" : "ignored" },
242242 "edge_inference_configs" : {
243243 "default" : {"enabled" : True , "unknown_inference_field" : 42 },
244244 },
@@ -247,7 +247,7 @@ def test_edge_endpoint_config_ignores_extra_fields_at_all_levels():
247247 ],
248248 "unknown_top_level_field" : True ,
249249 })
250- assert config .global_config .refresh_rate == 30.0
250+ assert config .global_config .refresh_rate == REFRESH_RATE_SECONDS
251251 assert config .edge_inference_configs ["default" ].enabled is True
252252 assert config .detectors [0 ].detector_id == "det_1"
253253
You can’t perform that action at this time.
0 commit comments