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/findit/crash/test/crash_testcase.py

Issue 2525003005: [Predator] Move testcase.py from libs/ to gae_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
« no previous file with comments | « no previous file | appengine/findit/gae_libs/testcase.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 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 from google.appengine.api import users 8 from google.appengine.api import users
9 9
10 from gae_libs.testcase import TestCase
10 from libs.http import retry_http_client 11 from libs.http import retry_http_client
11 from libs.testcase import TestCase
12 from lib.gitiles.change_log import ChangeLog 12 from lib.gitiles.change_log import ChangeLog
13 from model.crash.crash_config import CrashConfig 13 from model.crash.crash_config import CrashConfig
14 14
15 15
16 DEFAULT_CONFIG_DATA = { 16 DEFAULT_CONFIG_DATA = {
17 'fracas': { 17 'fracas': {
18 'analysis_result_pubsub_topic': 'projects/project-name/topics/name', 18 'analysis_result_pubsub_topic': 'projects/project-name/topics/name',
19 'supported_platform_list_by_channel': { 19 'supported_platform_list_by_channel': {
20 'canary': ['win', 'mac', 'linux'], 20 'canary': ['win', 'mac', 'linux'],
21 'supported_channel': ['supported_platform'], 21 'supported_channel': ['supported_platform'],
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 class CrashTestCase(TestCase): # pragma: no cover. 86 class CrashTestCase(TestCase): # pragma: no cover.
87 87
88 def setUp(self): 88 def setUp(self):
89 super(CrashTestCase, self).setUp() 89 super(CrashTestCase, self).setUp()
90 CrashConfig.Get().Update( 90 CrashConfig.Get().Update(
91 users.User(email='admin@chromium.org'), True, **DEFAULT_CONFIG_DATA) 91 users.User(email='admin@chromium.org'), True, **DEFAULT_CONFIG_DATA)
92 92
93 def GetDummyChangeLog(self): 93 def GetDummyChangeLog(self):
94 return DUMMY_CHANGELOG 94 return DUMMY_CHANGELOG
OLDNEW
« no previous file with comments | « no previous file | appengine/findit/gae_libs/testcase.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698