Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: appengine/chromium_status/tests/local_gae.py

Issue 778533003: Moved chromium_status to appengine/ (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « appengine/chromium_status/tests/fill.py ('k') | appengine/chromium_status/tests/main_test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Setups a local GAE instance to test against a live server for integration 5 """Setups a local GAE instance to test against a live server for integration
6 tests. 6 tests.
7 7
8 It makes sure Google AppEngine SDK is found and starts the server on a free 8 It makes sure Google AppEngine SDK is found and starts the server on a free
9 inbound TCP port. 9 inbound TCP port.
10 """ 10 """
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 interactive = self.get('console', url=self.admin_url) 218 interactive = self.get('console', url=self.admin_url)
219 match = re.search(r"'xsrf_token': *'(.*?)'", interactive) 219 match = re.search(r"'xsrf_token': *'(.*?)'", interactive)
220 if not match: 220 if not match:
221 logging.debug('interactive console output:\n%s', interactive) 221 logging.debug('interactive console output:\n%s', interactive)
222 raise Failure('could not find xsrf_token') 222 raise Failure('could not find xsrf_token')
223 self._xsrf_token = match.group(1) 223 self._xsrf_token = match.group(1)
224 self.clear_cookies() 224 self.clear_cookies()
225 return self._xsrf_token 225 return self._xsrf_token
226 226
227 # vim: ts=2:sw=2:tw=80:et: 227 # vim: ts=2:sw=2:tw=80:et:
OLDNEW
« no previous file with comments | « appengine/chromium_status/tests/fill.py ('k') | appengine/chromium_status/tests/main_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698