OLD | NEW |
---|---|
(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 'number': Property(kind=int), | |
10 } | |
11 | |
12 RETURN_SCHEMA = config.ReturnSchema( | |
13 result=config.Single(int), | |
14 ) | |
15 | |
16 def RunSteps(api, number): | |
17 result = number * 2 | |
18 return RETURN_SCHEMA(result=result) | |
19 | |
20 def GenTests(api): | |
21 yield ( | |
22 api.test('basic') + | |
23 api.properties(number=3) | |
24 ) | |
OLD | NEW |