Skip to content

Commit

Permalink
TestPluginFunctions: ensure we call parent setUp() before using `conf…
Browse files Browse the repository at this point in the history
…ig.config`

```
setting = {'enabled_plugins': []}, persist = None, profiles = None

    @staticmethod
    def set_config_values(setting=None, persist=None, profiles=None):
        if setting:
            for key, value in setting.items():
>               config.config.setting[key] = value
E               AttributeError: 'NoneType' object has no attribute 'setting'

test/picardtestcase.py:110: AttributeError
```
  • Loading branch information
zas committed Nov 5, 2024
1 parent 1f241f9 commit d68ca07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ def test_is_user_installed(self):

class TestPluginFunctions(PicardTestCase):
def setUp(self):
super().setUp()
self.set_config_values({
'enabled_plugins': [],
})
Expand Down

0 comments on commit d68ca07

Please sign in to comment.