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

Side by Side Diff: appengine/chromium_status/tests/main_test.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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import hashlib 6 import hashlib
7 import json 7 import json
8 import logging 8 import logging
9 import optparse 9 import optparse
10 import os 10 import os
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 parser.add_option('-v', action='count', default=0) 362 parser.add_option('-v', action='count', default=0)
363 (opts, _) = parser.parse_args([x for x in argv if x.startswith('-v')]) 363 (opts, _) = parser.parse_args([x for x in argv if x.startswith('-v')])
364 364
365 levels = [logging.WARNING, logging.INFO, logging.DEBUG] 365 levels = [logging.WARNING, logging.INFO, logging.DEBUG]
366 logging.basicConfig(level=levels[min(2, opts.v)]) 366 logging.basicConfig(level=levels[min(2, opts.v)])
367 367
368 368
369 if __name__ == '__main__': 369 if __name__ == '__main__':
370 _init_logging(sys.argv) 370 _init_logging(sys.argv)
371 unittest.main() 371 unittest.main()
OLDNEW
« no previous file with comments | « appengine/chromium_status/tests/local_gae.py ('k') | appengine/chromium_status/tools/remote_api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698