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

Unified Diff: recipe_modules/time/example.py

Issue 2909983003: [loader] Make recipe engine support examples/ module subdir (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: recipe_modules/time/example.py
diff --git a/recipe_modules/time/example.py b/recipe_modules/time/example.py
deleted file mode 100644
index b9f6445cd661cdf2be6c9567ffc6f7f62c48d174..0000000000000000000000000000000000000000
--- a/recipe_modules/time/example.py
+++ /dev/null
@@ -1,21 +0,0 @@
-# Copyright 2014 The LUCI Authors. All rights reserved.
-# Use of this source code is governed under the Apache License, Version 2.0
-# that can be found in the LICENSE file.
-
-import datetime
-
-DEPS = [
- 'step',
- 'time',
-]
-
-
-def RunSteps(api):
- now = api.time.time()
- api.step('echo', ['echo', str(now)])
- assert isinstance(api.time.utcnow(), datetime.datetime)
-
-
-def GenTests(api):
- yield api.test('defaults')
- yield api.test('seed_and_step') + api.time.seed(123) + api.time.step(2)
« 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