Skip to content

Commit 53b73ea

Browse files
committed
cleaned up based on tox comments
1 parent 4ddc084 commit 53b73ea

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

amadeus/client/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def __build_http_request(self):
106106
self.headers['Authorization'] = self.bearer_token
107107

108108
if self.verb == 'POST':
109-
#Adds HTTP override in Header for the list of paths required
109+
# Adds HTTP override in Header for the list of paths required
110110
if self.path in Request.list_httpoverride:
111111
self.headers['X-HTTP-Method-Override'] = 'GET'
112112
if type(self.params) is dict:

specs/client/request_spec.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@
8686
expect(self.request.http_request.data).to(
8787
equal(b'{\"foo\": \"bar\"}'))
8888

89-
with it('should return X-HTTP-Method-Override in header for some POST requests'):
90-
for path in Request.list_httpoverride:
89+
with it('should return X-HTTP-Method-Override in header'
90+
'for the listed POST requests'):
91+
for path in Request.list_httpoverride:
9192
self.request = Request({
9293
'host': self.host,
9394
'verb': 'POST',
@@ -103,8 +104,8 @@
103104
})
104105

105106
expect(self.request.http_request).to(be_a(HTTPRequest))
106-
expect(self.request.headers['X-HTTP-Method-Override']
107-
).to(equal('GET')
107+
expect(self.request.headers['X-HTTP-Method-Override']).to(
108+
equal('GET')
108109
)
109110

110111
with it('should handle a custom scheme and port'):

0 commit comments

Comments
 (0)