diff --git a/tests/helpers/stubs.py b/tests/helpers/stubs.py index a826c2ea7..fed5c6417 100644 --- a/tests/helpers/stubs.py +++ b/tests/helpers/stubs.py @@ -293,6 +293,9 @@ class ConfigStub(QObject): super().__init__(parent) self.data = {} + def __getitem__(self, name): + return self.section(name) + def section(self, name): """Get a section from the config.