コード例 #1
0
ファイル: test_config.py プロジェクト: butla/PyDAS
def test_config_bad_service_conf_path():
    with pytest.raises(BadConfigurationPathError):
        DasConfig._get_service_value(
            json.loads(TEST_VCAP_SERVICES),
            'requests-store/blabla')
コード例 #2
0
ファイル: test_config.py プロジェクト: bsandyy/PyDAS
def test_config_bad_service_conf_path():
    with pytest.raises(BadConfigurationPathError):
        DasConfig._get_service_value(json.loads(TEST_VCAP_SERVICES),
                                     'requests-store/blabla')
コード例 #3
0
ファイル: test_config.py プロジェクト: butla/PyDAS
def test_config_bad_service():
    with pytest.raises(NoServiceConfigurationError):
        DasConfig._get_service_value(
            json.loads(TEST_VCAP_SERVICES),
            'nonexistent-service/blabla')
コード例 #4
0
ファイル: test_config.py プロジェクト: bsandyy/PyDAS
def test_config_bad_service():
    with pytest.raises(NoServiceConfigurationError):
        DasConfig._get_service_value(json.loads(TEST_VCAP_SERVICES),
                                     'nonexistent-service/blabla')