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

Side by Side Diff: appengine/findit/crash/test/crash_testcase.py

Issue 2538373003: [Culprit-Finder] Merge lib/ to libs/. (Closed)
Patch Set: . Created 4 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 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 import copy 5 import copy
6 import re 6 import re
7 7
8 import gae_ts_mon 8 import gae_ts_mon
9 from google.appengine.api import users 9 from google.appengine.api import users
10 10
11 from gae_libs.testcase import TestCase 11 from gae_libs.testcase import TestCase
12 from libs.gitiles.change_log import ChangeLog
12 from libs.http import retry_http_client 13 from libs.http import retry_http_client
13 from lib.gitiles.change_log import ChangeLog
14 from model.crash.crash_config import CrashConfig 14 from model.crash.crash_config import CrashConfig
15 15
16 16
17 DEFAULT_CONFIG_DATA = { 17 DEFAULT_CONFIG_DATA = {
18 'fracas': { 18 'fracas': {
19 'analysis_result_pubsub_topic': 'projects/project-name/topics/name', 19 'analysis_result_pubsub_topic': 'projects/project-name/topics/name',
20 'supported_platform_list_by_channel': { 20 'supported_platform_list_by_channel': {
21 'canary': ['win', 'mac', 'linux'], 21 'canary': ['win', 'mac', 'linux'],
22 'supported_channel': ['supported_platform'], 22 'supported_channel': ['supported_platform'],
23 }, 23 },
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 class CrashTestCase(TestCase): # pragma: no cover. 87 class CrashTestCase(TestCase): # pragma: no cover.
88 88
89 def setUp(self): 89 def setUp(self):
90 super(CrashTestCase, self).setUp() 90 super(CrashTestCase, self).setUp()
91 CrashConfig.Get().Update( 91 CrashConfig.Get().Update(
92 users.User(email='admin@chromium.org'), True, **DEFAULT_CONFIG_DATA) 92 users.User(email='admin@chromium.org'), True, **DEFAULT_CONFIG_DATA)
93 gae_ts_mon.reset_for_unittest(disable=True) 93 gae_ts_mon.reset_for_unittest(disable=True)
94 94
95 def GetDummyChangeLog(self): 95 def GetDummyChangeLog(self):
96 return DUMMY_CHANGELOG 96 return DUMMY_CHANGELOG
OLDNEW
« no previous file with comments | « appengine/findit/crash/test/crash_pipeline_test.py ('k') | appengine/findit/crash/test/findit_for_chromecrash_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698