Skip to content

Commit

Permalink
update tests to pass sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
tsolakoua committed Apr 9, 2024
1 parent 8bf7e5b commit 59795e7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions specs/mixins/test_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ def test_unauthenticated_request(self):
# Test the client's _unauthenticated_request method
with pytest.raises(ResponseError):
response = self.client._unauthenticated_request('GET', '/foo', {}, None)
assert self.client.call_count == 1
assert response == http_response

# Test that a HTTPError is caught
self.client.http.side_effect = URLError('Error')
Expand All @@ -86,4 +84,3 @@ def test_unauthenticated_request(self):
with pytest.raises(ResponseError):
response = self.client._unauthenticated_request(
'GET', '/foo', {}, None)
assert logger.debug.call_count == 2

0 comments on commit 59795e7

Please sign in to comment.