diff --git a/tests/core/test_plugin_base.py b/tests/core/test_plugin_base.py index 04b6a1665..2bc30ae2e 100644 --- a/tests/core/test_plugin_base.py +++ b/tests/core/test_plugin_base.py @@ -16,6 +16,12 @@ class PluginTest(PluginBase): ).to_dict() +def test_invalid_config_type(): + """Test that invalid config types raise an error.""" + with pytest.raises(TypeError, match="Error parsing config of type 'tuple'"): + PluginTest(config=(("prop1", "hello"), ("prop2", 123))) + + def test_get_env_var_config(monkeypatch: pytest.MonkeyPatch): """Test settings parsing from environment variables.""" monkeypatch.delenv("PLUGIN_TEST_PROP1", raising=False)