Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Feb 14, 2018
1 parent b1a8b25 commit 3f1be3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions aiohttp_debugtoolbar/panels/request_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ def __init__(self, request):
def process_response(self, response):
self.data = data = {}
request = self.request
yield from request.post()
post_data = yield from request.post()
data.update({
'get': [(k, request.query.getall(k))
for k in sorted(request.query)],
'post': [(k, saferepr(request.post().getall(k)))
for k in sorted(request.post())],
'post': [(k, saferepr(post_data.getall(k)))
for k in sorted(post_data)],
'cookies': [(k, v) for k, v in sorted(request.cookies.items())],
'attrs': [(k, v) for k, v in sorted(request.items())],
})
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ pygments==2.2.0
yarl==1.1.0
multidict==4.1.0
pytest-aiohttp==0.3.0
pytest-sugar==0.9.0
pytest-sugar==0.9.1
pytest-timeout==1.2.1
-e .

0 comments on commit 3f1be3e

Please sign in to comment.