From 958c6396ae4c000f14588ac0a1e534f4d272da21 Mon Sep 17 00:00:00 2001 From: Jose Boucourt Date: Thu, 15 Aug 2024 21:22:58 +0000 Subject: [PATCH] Updating --- tests/test_gestalt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_gestalt.py b/tests/test_gestalt.py index 95a2e78..62d130a 100644 --- a/tests/test_gestalt.py +++ b/tests/test_gestalt.py @@ -559,8 +559,8 @@ def test_set_vault_key(nested_setup): def test_vault_lazy_connect(mock_vault_k8s_auth): with patch("gestalt.vault.hvac.Client") as mock_client: - mock_client.auth.token.lookup_self = lambda: {"data": {"id": "foo", "ttl": "foo", "expire_time": "2024-08-15T22:04:49.82981496Z"}} v = Vault(role="test-role", jwt="test-jwt") + v.vault_client.auth.token.lookup_self = lambda: {"data": {"id": "foo", "ttl": "foo", "expire_time": "2024-08-15T22:04:49.82981496Z"}} assert not v._is_connected v.get("foo", "foo", ".foo") assert v._is_connected