Skip to content

Commit

Permalink
Updating
Browse files Browse the repository at this point in the history
  • Loading branch information
jboucourt committed Aug 15, 2024
1 parent 958c639 commit 38175eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_gestalt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 38175eb

Please sign in to comment.