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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater_unittest.py

Issue 2655183002: In WPT importer, abort if there are exportable-but-not-yet-exported commits. (Closed)
Patch Set: Created 3 years, 10 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 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 unittest 5 import unittest
6 6
7 from webkitpy.common.host_mock import MockHost 7 from webkitpy.common.host_mock import MockHost
8 from webkitpy.common.system.executive_mock import MockExecutive 8 from webkitpy.common.system.executive_mock import MockExecutive
9 from webkitpy.w3c.deps_updater import DepsUpdater 9 from webkitpy.w3c.deps_updater import DepsUpdater
10 10
11 11
12 class DepsUpdaterTest(unittest.TestCase): 12 class DepsUpdaterTest(unittest.TestCase):
13 13
14 def test_abort_on_exportable_commits(self):
15 updater = DepsUpdater(MockHost())
16 updater.exportable_but_not_exported_commits = lambda _: ['aaaa']
17 return_code = updater.main(['wpt'])
18 self.assertEqual(return_code, 1)
19
14 def test_generate_email_list(self): 20 def test_generate_email_list(self):
15 updater = DepsUpdater(MockHost()) 21 updater = DepsUpdater(MockHost())
16 changed_files = [ 22 changed_files = [
17 'third_party/WebKit/LayoutTests/foo/bar/file.html', 23 'third_party/WebKit/LayoutTests/foo/bar/file.html',
18 'third_party/WebKit/LayoutTests/foo/bar/otherfile.html', 24 'third_party/WebKit/LayoutTests/foo/bar/otherfile.html',
19 'third_party/WebKit/LayoutTests/foo/baz/files.html', 25 'third_party/WebKit/LayoutTests/foo/baz/files.html',
20 'some/non-test.file', 26 'some/non-test.file',
21 ] 27 ]
22 directory_to_owner = { 28 directory_to_owner = {
23 'foo/bar': 'someone@gmail.com', 29 'foo/bar': 'someone@gmail.com',
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 '--work', 148 '--work',
143 '--tests-root', 149 '--tests-root',
144 '/mock-checkout/third_party/WebKit/LayoutTests/external/wpt' 150 '/mock-checkout/third_party/WebKit/LayoutTests/external/wpt'
145 ], 151 ],
146 [ 152 [
147 'git', 153 'git',
148 'add', 154 'add',
149 '/mock-checkout/third_party/WebKit/LayoutTests/external/wpt/ MANIFEST.json' 155 '/mock-checkout/third_party/WebKit/LayoutTests/external/wpt/ MANIFEST.json'
150 ] 156 ]
151 ]) 157 ])
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698