| Index: recipes/bottom.py
|
| diff --git a/recipes/bottom.py b/recipes/bottom.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6d90218ab88e8e4e05f6c2d522147ebc375420fb
|
| --- /dev/null
|
| +++ b/recipes/bottom.py
|
| @@ -0,0 +1,24 @@
|
| +from recipe_engine.recipe_api import Property
|
| +from recipe_engine import config
|
| +
|
| +DEPS = [
|
| + 'recipe_engine/properties',
|
| +]
|
| +
|
| +PROPERTIES = {
|
| + 'number': Property(kind=int),
|
| +}
|
| +
|
| +RETURN_SCHEMA = config.ReturnSchema(
|
| + result=config.Single(int),
|
| +)
|
| +
|
| +def RunSteps(api, number):
|
| + result = number * 2
|
| + return RETURN_SCHEMA(result=result)
|
| +
|
| +def GenTests(api):
|
| + yield (
|
| + api.test('basic') +
|
| + api.properties(number=3)
|
| + )
|
|
|