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

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

Issue 2344443005: [Findit] Factoring the gitiles (etc) stuff out into its own directory (Closed)
Patch Set: reordering imports 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 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 testing_utils import testing 5 from testing_utils import testing
6 6
7 from common import chrome_dependency_fetcher 7 from common import chrome_dependency_fetcher
8 from common.dependency import Dependency 8 from common.dependency import Dependency
9 from common.diff import ChangeType
10 from common.pipeline_wrapper import pipeline_handlers 9 from common.pipeline_wrapper import pipeline_handlers
10 from lib.gitiles.diff import ChangeType
11 from waterfall.extract_deps_info_pipeline import ExtractDEPSInfoPipeline 11 from waterfall.extract_deps_info_pipeline import ExtractDEPSInfoPipeline
12 12
13 13
14 class ExtractDEPSInfoPipelineTest(testing.AppengineTestCase): 14 class ExtractDEPSInfoPipelineTest(testing.AppengineTestCase):
15 app_module = pipeline_handlers._APP 15 app_module = pipeline_handlers._APP
16 16
17 def testExtractDEPSInfo(self): 17 def testExtractDEPSInfo(self):
18 def MockGetDependency(_, revision, os_platform): 18 def MockGetDependency(_, revision, os_platform):
19 self.assertEqual('unix', os_platform) 19 self.assertEqual('unix', os_platform)
20 if revision == 'rev2': 20 if revision == 'rev2':
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 } 106 }
107 change_logs = {} 107 change_logs = {}
108 expected_deps_info = { 108 expected_deps_info = {
109 'deps': {}, 109 'deps': {},
110 'deps_rolls': {}, 110 'deps_rolls': {},
111 } 111 }
112 112
113 pipeline = ExtractDEPSInfoPipeline() 113 pipeline = ExtractDEPSInfoPipeline()
114 deps_info = pipeline.run(failure_info, change_logs) 114 deps_info = pipeline.run(failure_info, change_logs)
115 self.assertEqual(expected_deps_info, deps_info) 115 self.assertEqual(expected_deps_info, deps_info)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698