Example #1
0
 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"
Example #2
0
 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)
Example #3
0
 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'