Skip to content

Commit

Permalink
fix monkeypatch call
Browse files Browse the repository at this point in the history
  • Loading branch information
thedoubl3j committed Oct 23, 2024
1 parent 5be1f74 commit 00190be
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/credential_plugins_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,8 @@ def test_aim_sensitive_traceback_masked(
my_response.status_code = 404
my_response.url = 'not_found'

mock_get = mocker.patch(
'awx_plugins.credentials.aim.requests.get',
new_callable=mock.Mock,
)
mock_get.return_value = my_response
monkeypatch.setattr(aim.requests, 'get', mocker.Mock(name='aim_request'))
aim.requests.get.return_value = my_response

expected_url_in_exc = (
r'.*http://testurl\.com/AIMWebService/api/Accounts\?'
Expand Down

0 comments on commit 00190be

Please sign in to comment.