From 38175ebd78ebc036b18298b19deb314e99e2aaa1 Mon Sep 17 00:00:00 2001 From: Jose Boucourt Date: Thu, 15 Aug 2024 21:28:08 +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 62d130a..dfee0d0 100644 --- a/tests/test_gestalt.py +++ b/tests/test_gestalt.py @@ -560,7 +560,7 @@ 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: 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"}} + v.vault_client.auth.token.lookup_self = MagicMock(return_value={"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