def test_invalid_mode(self): cfile = create_config(("mode=kura",)) conf = Config(cfile).load() with pytest.raises(ConfigException): assert conf.test_mode() assert conf.mode == "kura"
def test_invalid_mode(self): cfile = create_config(("mode=kura", )) conf = Config(cfile).load() with pytest.raises(ConfigException): assert conf.test_mode() assert conf.mode == "kura"