Skip to content

Commit

Permalink
Test with invalid config type
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Dec 2, 2024
1 parent e260aa3 commit 6aee7da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/core/test_plugin_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6aee7da

Please sign in to comment.