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

Side by Side Diff: appengine/findit/waterfall/test/build_failure_analysis_test.py

Issue 2344443005: [Findit] Factoring the gitiles (etc) stuff out into its own directory (Closed)
Patch Set: moving ./gitiles to ./lib/gitiles Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 from datetime import datetime 5 from datetime import datetime
6 6
7 from common.blame import Blame 7 from lib.gitiles.blame import Blame
8 from common.blame import Region 8 from lib.gitiles.blame import Region
9 from common.change_log import FileChangeInfo 9 from lib.gitiles.change_log import FileChangeInfo
10 from common.diff import ChangeType 10 from lib.gitiles.diff import ChangeType
11 from common.git_repository import GitRepository 11 from lib.gitiles.git_repository import GitRepository
12 from common.waterfall import failure_type 12 from common.waterfall import failure_type
13 from waterfall import build_failure_analysis 13 from waterfall import build_failure_analysis
14 from waterfall.failure_signal import FailureSignal 14 from waterfall.failure_signal import FailureSignal
15 from waterfall.test import wf_testcase 15 from waterfall.test import wf_testcase
16 16
17 17
18 class BuildFailureAnalysisTest(wf_testcase.WaterfallTestCase): 18 class BuildFailureAnalysisTest(wf_testcase.WaterfallTestCase):
19 19
20 def _MockGetChangeLog(self, revision): 20 def _MockGetChangeLog(self, revision):
21 21
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1213 touched_file, file_path_in_log, justification, file_name_occurrences, 1213 touched_file, file_path_in_log, justification, file_name_occurrences,
1214 line_numbers, repo_info, commit_revision) 1214 line_numbers, repo_info, commit_revision)
1215 1215
1216 expected_justification = { 1216 expected_justification = {
1217 'score': 4, 1217 'score': 4,
1218 'hints': { 1218 'hints': {
1219 'modified c.cc[1, 3] (and it was in log)': 4 1219 'modified c.cc[1, 3] (and it was in log)': 4
1220 } 1220 }
1221 } 1221 }
1222 self.assertEqual(expected_justification, justification.ToDict()) 1222 self.assertEqual(expected_justification, justification.ToDict())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698