コード例 #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
ファイル: includes_test.py プロジェクト: SpeCT/compose-addons
 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
ファイル: includes_test.py プロジェクト: SpeCT/compose-addons
 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())