Пример #1
0
 def test_fetch_from_file(self, local_config):
     config = fetch_external_config(normalize_url(str(local_config)), None)
     assert set(config.keys()) == {'db', 'web'}
Пример #2
0
 def test_fetch_from_file(self, local_config):
     config = fetch_external_config(normalize_url(str(local_config)), None)
     assert set(config.keys()) == {'db', 'web'}
Пример #3
0
 def test_unsupported_scheme(self):
     with pytest.raises(ConfigError) as exc:
         fetch_external_config(normalize_url("bogus://something"), None)
     assert 'Unsupported url scheme "bogus"' in str(exc.exconly())
Пример #4
0
 def test_unsupported_scheme(self):
     with pytest.raises(ConfigError) as exc:
         fetch_external_config(normalize_url("bogus://something"), None)
     assert 'Unsupported url scheme "bogus"' in str(exc.exconly())