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

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

Issue 2514413003: [Predator] Monitor found_suspects, has_regression_range and found_components using ts_mon (Closed)
Patch Set: Update docs. Created 4 years, 1 month 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 from google.appengine.api import users 9 from google.appengine.api import users
9 10
10 from common.findit_testcase import FinditTestCase 11 from common.findit_testcase import FinditTestCase
11 from libs.http import retry_http_client 12 from libs.http import retry_http_client
12 from lib.gitiles.change_log import ChangeLog 13 from lib.gitiles.change_log import ChangeLog
13 from model.crash.crash_config import CrashConfig 14 from model.crash.crash_config import CrashConfig
14 15
15 16
16 DEFAULT_CONFIG_DATA = { 17 DEFAULT_CONFIG_DATA = {
17 'fracas': { 18 'fracas': {
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 def _Put(self, *_): 97 def _Put(self, *_):
97 pass 98 pass
98 99
99 100
100 class CrashTestCase(FinditTestCase): # pragma: no cover. 101 class CrashTestCase(FinditTestCase): # pragma: no cover.
101 102
102 def setUp(self): 103 def setUp(self):
103 super(CrashTestCase, self).setUp() 104 super(CrashTestCase, self).setUp()
104 CrashConfig.Get().Update( 105 CrashConfig.Get().Update(
105 users.User(email='admin@chromium.org'), True, **DEFAULT_CONFIG_DATA) 106 users.User(email='admin@chromium.org'), True, **DEFAULT_CONFIG_DATA)
107 gae_ts_mon.reset_for_unittest(disable=True)
106 108
107 def GetDummyChangeLog(self): 109 def GetDummyChangeLog(self):
108 return DUMMY_CHANGELOG 110 return DUMMY_CHANGELOG
109 111
110 def GetMockHttpClient(self): 112 def GetMockHttpClient(self):
111 return MockHttpClient() 113 return MockHttpClient()
OLDNEW
« appengine/findit/crash/monitoring.py ('K') | « appengine/findit/crash/monitoring.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698