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

Side by Side Diff: recipes/engine_tests/trigger.py

Issue 2702313003: Remove unused imports and fix some other linter errors. (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 2013 The LUCI Authors. All rights reserved. 1 # Copyright 2013 The LUCI Authors. All rights reserved.
2 # Use of this source code is governed under the Apache License, Version 2.0 2 # Use of this source code is governed under the Apache License, Version 2.0
3 # that can be found in the LICENSE file. 3 # that can be found in the LICENSE file.
4 4
5 import datetime
6 from recipe_engine.recipe_api import Property 5 from recipe_engine.recipe_api import Property
7 6
8 DEPS = [ 7 DEPS = [
9 'properties', 8 'properties',
10 'step', 9 'step',
11 ] 10 ]
12 11
13 PROPERTIES = { 12 PROPERTIES = {
14 'command': Property(default=None), 13 'command': Property(default=None),
15 } 14 }
16 15
17 def RunSteps(api, command): 16 def RunSteps(api, command):
18 api.step( 17 api.step(
19 'trigger some junk', 18 'trigger some junk',
20 cmd=command, 19 cmd=command,
21 trigger_specs=[{ 20 trigger_specs=[{
22 'builder_name': 'triggered', 21 'builder_name': 'triggered',
23 'buildbot_changes': [{ 22 'buildbot_changes': [{
24 'when_timestamp': 1445412480, 23 'when_timestamp': 1445412480,
25 }], 24 }],
26 }]) 25 }])
27 26
28 def GenTests(api): 27 def GenTests(api):
29 yield api.test('basic') 28 yield api.test('basic')
OLDNEW
« recipe_engine/step_runner.py ('K') | « recipes.py ('k') | unittests/autoroll_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698