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

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

Issue 1421843006: Add simple depends_on API. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/recipes-py@master
Patch Set: Fix small broken tests, add invoke tests, respond to nits. Created 5 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
(Empty)
1 from recipe_engine.recipe_api import Property
2 from recipe_engine import config
3
4 DEPS = [
5 'recipe_engine/properties',
6 ]
7
8 PROPERTIES = {}
9
10 RETURN_SCHEMA = config.ReturnSchema(
11 result=config.Single(int),
12 )
13
14 def RunSteps(api):
15 res = api.depend_on('engine_tests/bottom', {'number': 'lalala'})
16 return RETURN_SCHEMA(result=res['number_times_two'])
17
18 def GenTests(api):
19 yield (
20 api.test('basic') +
21 api.properties() +
22 api.expect_exception('TypeError')
23 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698