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