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

Unified Diff: dashboard/dashboard/auto_triage_test.py

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 years, 5 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dashboard/app.yaml ('k') | dashboard/dashboard/bisect_fyi_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/auto_triage_test.py
diff --git a/dashboard/dashboard/auto_triage_test.py b/dashboard/dashboard/auto_triage_test.py
index f1d1fc23ab89dc0db2209415c53c63744a59f35a..82f90ad448c26b66168a7ad3c63023203d4708f7 100644
--- a/dashboard/dashboard/auto_triage_test.py
+++ b/dashboard/dashboard/auto_triage_test.py
@@ -11,6 +11,7 @@ import webtest
from google.appengine.ext import ndb
from dashboard import auto_triage
+from dashboard import issue_tracker_service
from dashboard import testing_common
from dashboard import utils
from dashboard.models import anomaly
@@ -18,6 +19,8 @@ from dashboard.models import bug_data
from dashboard.models import sheriff
+@mock.patch('apiclient.discovery.build', mock.MagicMock())
+@mock.patch.object(utils, 'ServiceAccountCredentials', mock.MagicMock())
@mock.patch.object(utils, 'TickMonitoringCustomMetric', mock.MagicMock())
class AutoTriageTest(testing_common.TestCase):
@@ -135,9 +138,7 @@ class AutoTriageTest(testing_common.TestCase):
self.assertFalse(anomaly_key.get().recovered)
@mock.patch.object(
- utils, 'ServiceAccountCredentials', mock.MagicMock())
- @mock.patch.object(
- auto_triage.issue_tracker_service.IssueTrackerService, 'AddBugComment')
+ issue_tracker_service.IssueTrackerService, 'AddBugComment')
def testPost_AllAnomaliesRecovered_AddsComment(self, add_bug_comment_mock):
sheriff_key = sheriff.Sheriff(email='a@google.com', id='sheriff_key').put()
values = [
« no previous file with comments | « dashboard/app.yaml ('k') | dashboard/dashboard/bisect_fyi_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698