def config(self): self.view.destroy() config.Config(self._root).run() self.init()
def test_no_settings(root, settings, locator): settings.data = {} c = config.Config(root) assert c.model.theme == "default"
def test_settings_overwrites(root, settings, locator): settings.data["theme"] = "clam" c = config.Config(root) assert c.model.theme == "clam"
def test_settings_nonsense_doesnt_change(root, settings, locator): settings.data["theme"] = "donteverhave" c = config.Config(root) assert c.model.theme == "default"
def config_obj(root, locator): return config.Config(root)