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

Unified Diff: recipes/engine_tests/depend_on/dont_need_properties_helper.py

Issue 1421843006: Add simple depends_on API. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/recipes-py@master
Patch Set: Remove old expectation, move tests to their own folder. 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 side-by-side diff with in-line comments
Download patch
Index: recipes/engine_tests/depend_on/dont_need_properties_helper.py
diff --git a/recipes/engine_tests/depend_on/dont_need_properties_helper.py b/recipes/engine_tests/depend_on/dont_need_properties_helper.py
new file mode 100644
index 0000000000000000000000000000000000000000..d6e9fa5caf2c6f9e3171bed2bf3a7e51d6d29fc1
--- /dev/null
+++ b/recipes/engine_tests/depend_on/dont_need_properties_helper.py
@@ -0,0 +1,21 @@
+from recipe_engine.recipe_api import Property
+from recipe_engine import config
+
+DEPS = [
+ 'recipe_engine/properties',
+]
+
+# Missing PROPERTIES on purpose
+
+RETURN_SCHEMA = config.ReturnSchema(
+ result=config.Single(int),
+)
+
+
+def RunSteps(api):
+ return RETURN_SCHEMA(result=0)
+
+def GenTests(api):
+ yield (
+ api.test('basic')
+ )

Powered by Google App Engine
This is Rietveld 408576698