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

Side by Side Diff: recipe_modules/time/example.py

Issue 2909983003: [loader] Make recipe engine support examples/ module subdir (Closed)
Patch Set: Created 3 years, 6 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
(Empty)
1 # Copyright 2014 The LUCI Authors. All rights reserved.
2 # Use of this source code is governed under the Apache License, Version 2.0
3 # that can be found in the LICENSE file.
4
5 import datetime
6
7 DEPS = [
8 'step',
9 'time',
10 ]
11
12
13 def RunSteps(api):
14 now = api.time.time()
15 api.step('echo', ['echo', str(now)])
16 assert isinstance(api.time.utcnow(), datetime.datetime)
17
18
19 def GenTests(api):
20 yield api.test('defaults')
21 yield api.test('seed_and_step') + api.time.seed(123) + api.time.step(2)
OLDNEW
« no previous file with comments | « recipe_modules/tempfile/examples/full.expected/basic.json ('k') | recipe_modules/time/example.expected/defaults.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698