Chromium Code Reviews| Index: appengine/findit/crash/test/crash_testcase.py |
| diff --git a/appengine/findit/crash/test/crash_testcase.py b/appengine/findit/crash/test/crash_testcase.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e2a25875b6d2155fd899a4e74f78fdcc2da36e4c |
| --- /dev/null |
| +++ b/appengine/findit/crash/test/crash_testcase.py |
| @@ -0,0 +1,31 @@ |
| +# Copyright 2016 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +import copy |
| + |
| +from google.appengine.api import users |
| + |
| +from common.findit_testcase import FinditTestCase |
| +from model.crash.crash_config import CrashConfig |
| + |
| + |
| +DEFAULT_CONFIG_DATA = { |
| + 'fracas': { |
| + 'crash_data_push_token': 'secrete_token', |
|
Martin Barbella
2016/04/11 21:46:32
s/secrete/secret/
stgao
2016/04/12 18:19:17
oops, done.
|
| + 'analysis_result_pubsub_topic': 'projects/project-name/topics/name', |
| + 'supported_platform_list_by_channel': { |
| + 'canary': ['win', 'mac'], |
| + 'supported_channel': ['supported_platform'], |
| + }, |
| + } |
| +} |
| + |
| +class CrashTestCase(FinditTestCase): # pragma: no cover. |
| + |
| + def setUp(self): |
| + super(CrashTestCase, self).setUp() |
| + CrashConfig.Get().Update( |
| + users.User(email='admin@chromium.org'), True, **DEFAULT_CONFIG_DATA) |
| + |
| + |