We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cd93587 + e6e015c commit 47adc26Copy full SHA for 47adc26
tests/config/test_util.py
@@ -53,6 +53,13 @@ def test_load_config_marshmallow_dataclass() -> None:
53
_ = load_config(MmSimpleConfig, config)
54
55
56
+def test_load_config_load_None() -> None:
57
+ """Test that load_config raises ValidationError if the configuration is None."""
58
+ config: dict[str, Any] = {}
59
+ with pytest.raises(marshmallow.ValidationError):
60
+ _ = load_config(MmSimpleConfig, config.get("loggers", None))
61
+
62
63
def test_load_config_type_hints(mocker: MockerFixture) -> None:
64
"""Test that load_config loads a configuration into a configuration class."""
65
mock_class_schema = mocker.Mock()
0 commit comments