💚 Still fighting the CI

This commit is contained in:
Gina Häußge committed 2023-07-19 16:06:55 +02:00
1 parent f12f75c9b7
commit d9c6e21c2e
2 files changed
+10

No files matched your search

+3
View File
@@ -744,3 +744,6 @@ class PluginSettings:
Removes all data stored for this plugin.
"""
self.settings.remove(self._prefix_path())
def __getattr__(self, item):
return getattr(self.settings, item)
+7
View File
@@ -372,3 +372,10 @@ def test_logfile_path_with_postfix(plugin_settings, settings):
settings.getBaseFolder.assert_called_once_with("logs")
assert f"/some/folder/plugin_{plugin_key}_mypostfix.log" == path.replace(os.sep, "/")
def test_unhandled_method(plugin_settings):
with pytest.raises(
AttributeError, match="Mock object has no attribute 'some_method'"
):
plugin_settings.some_method("some_parameter")