Skip to content

Commit 1e0e851

Browse files
Fix: PluginConfig is a pydantic model, not a dict.
1 parent 8b4105f commit 1e0e851

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/unit/test_plugin_config.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import pytest
22
import yaml
33
from unittest import mock
4-
54
from pathlib import Path
5+
66
from palm.palm_exceptions import InvalidConfigError
77

88

@@ -41,8 +41,9 @@ def test_get_config(mock_plugin_config, tmp_path, monkeypatch):
4141
config_path = tmp_path / "config.yaml"
4242
config_path.write_text(yaml.dump({'plugin_config': {'test': {'value': 'foo'}}}))
4343
monkeypatch.setattr(config, "config_path", config_path)
44+
result = config.get()
4445

45-
assert config.get() == {"value": "foo"}
46+
assert result.value == "foo"
4647

4748

4849
@pytest.mark.parametrize("config", [{"value": "foo"}])

0 commit comments

Comments
 (0)