def test_frambo_config_ok(self): path = Path(__file__).parent.parent / "data/configs/ok-config" conf = config.frambo_config(path) assert conf["emails"]["smtp_server"] == "elm.street" assert conf["pagure"]["host"] == "test"
def test_frambo_config_not_ok(self, data_path): path = Path(__file__).parent.parent / "data/configs/" / data_path with pytest.raises(Exception): config.frambo_config(path)
def test_frambo_config_ok(self): path = Path(__file__).parent.parent / 'data/configs/ok-config' conf = config.frambo_config(path) assert conf['emails']['smtp_server'] == 'elm.street' assert conf['pagure']['host'] == 'test'