We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd5196d commit 7518bc7Copy full SHA for 7518bc7
1 file changed
tests/unit/test_configuration_unknown_fields.py
@@ -6,7 +6,7 @@
6
from models.config import ServiceConfiguration
7
8
9
-def test_configuration_rejects_unknown_fields():
+def test_configuration_rejects_unknown_fields() -> None:
10
"""Test that configuration models reject unknown fields."""
11
with pytest.raises(ValidationError, match="Extra inputs are not permitted"):
12
ServiceConfiguration(host="localhost", port=8080, unknown_field="should_fail")
0 commit comments