Skip to content

Commit

Permalink
remove unassigned value
Browse files Browse the repository at this point in the history
  • Loading branch information
tsolakoua committed Apr 9, 2024
1 parent 59795e7 commit 28d0081
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions specs/mixins/test_http.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pytest
import mock
import unittest.mock
from amadeus import Client, Response, ResponseError
from urllib.error import URLError
Expand Down Expand Up @@ -69,7 +68,7 @@ def test_unauthenticated_request(self):

# Test the client's _unauthenticated_request method
with pytest.raises(ResponseError):
response = self.client._unauthenticated_request('GET', '/foo', {}, None)
self.client._unauthenticated_request('GET', '/foo', {}, None)

# Test that a HTTPError is caught
self.client.http.side_effect = URLError('Error')
Expand All @@ -82,5 +81,5 @@ def test_unauthenticated_request(self):
self.client.logger = logger
self.client.log_level = 'debug'
with pytest.raises(ResponseError):
response = self.client._unauthenticated_request(
self.client._unauthenticated_request(
'GET', '/foo', {}, None)

0 comments on commit 28d0081

Please sign in to comment.