Skip to content

Commit a0940ac

Browse files
committed
updating tests
1 parent ab067ea commit a0940ac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/unit/test_edge_config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,10 @@ def test_edge_endpoint_config_from_yaml_requires_exactly_one_input():
235235
EdgeEndpointConfig.from_yaml(filename=" ")
236236

237237

238-
def test_edge_endpoint_config_rejects_extra_top_level_fields():
239-
"""Rejects unknown top-level fields to avoid silent config drift."""
240-
with pytest.raises(ValueError, match="Extra inputs are not permitted"):
241-
EdgeEndpointConfig.model_validate({"global_config": {}, "unknown_field": True})
238+
def test_edge_endpoint_config_ignores_extra_top_level_fields():
239+
"""Unknown fields are silently ignored for forward compatibility (Postel's Law)."""
240+
config = EdgeEndpointConfig.model_validate({"global_config": {}, "unknown_field": True})
241+
assert config.global_config.refresh_rate == 60.0
242242

243243

244244
def test_model_dump_shape_for_edge_endpoint_config():

0 commit comments

Comments
 (0)