Exemplo n.º 1
0
def test_handle_error_json():
    with pytest.raises(exceptions.VaultNonJsonResponse):
        with client.handle_errors():
            json.loads("{")
Exemplo n.º 2
0
def test_handle_errors(hvac_exc, vault_cli_exc):
    with pytest.raises(vault_cli_exc):
        with client.handle_errors():
            raise hvac_exc