Пример #1
0
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
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
def test_config_bad_service():
    with pytest.raises(NoServiceConfigurationError):
        DasConfig._get_service_value(
            json.loads(TEST_VCAP_SERVICES),
            'nonexistent-service/blabla')
Пример #4
0
def test_config_bad_service():
    with pytest.raises(NoServiceConfigurationError):
        DasConfig._get_service_value(json.loads(TEST_VCAP_SERVICES),
                                     'nonexistent-service/blabla')