Skip to content

Commit

Permalink
validate has an exception and is before authenticate so authenticate …
Browse files Browse the repository at this point in the history
…should not be triggered and could do with an empty mock
  • Loading branch information
mathijswesterhof committed Oct 4, 2024
1 parent 17bb721 commit 38e18f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
def failed_authenticator():
authenticator = HashiVaultAuthenticator
authenticator.validate = mock.Mock(side_effect=HashiVaultValueError("Authentication failed"))
authenticator.authenticate = mock.Mock(wraps=lambda client: 'throwaway')
authenticator.authenticate = mock.Mock()

return authenticator

Expand Down

0 comments on commit 38e18f0

Please sign in to comment.