Skip to content

Commit

Permalink
add cookie to enable performance panel in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jettify committed Apr 27, 2015
1 parent 2b5b1d1 commit a3a8c1e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_middlware.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,11 @@ def func(request):
def go():
yield from self._setup_app(func)

# make sure that toolbar buttorn present on apps page
resp = yield from aiohttp.request('GET', self.url, loop=self.loop)
# make sure that toolbar button present on apps page
# add cookie to enforce performance panel measure time
cookie = {"pdtb_active": "pDebugPerformancePanel"}
resp = yield from aiohttp.request('GET', self.url, cookies=cookie,
loop=self.loop)
self.assertEqual(200, resp.status)
txt = yield from resp.text()
self.assertTrue('pDebugToolbarHandle' in txt)
Expand Down

0 comments on commit a3a8c1e

Please sign in to comment.