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

Unified Diff: recipe_modules/rietveld/example.py

Issue 1642023002: depot_tools: import bot_update gclient git rietveld tryserver recipe modules (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: presubmit Created 4 years, 11 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
« no previous file with comments | « recipe_modules/rietveld/api.py ('k') | recipe_modules/rietveld/example.expected/basic.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/rietveld/example.py
diff --git a/recipe_modules/rietveld/example.py b/recipe_modules/rietveld/example.py
new file mode 100644
index 0000000000000000000000000000000000000000..b00cb201a34c580bf2294e2fa319582327e0b72a
--- /dev/null
+++ b/recipe_modules/rietveld/example.py
@@ -0,0 +1,23 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+DEPS = [
+ 'recipe_engine/path',
+ 'recipe_engine/properties',
+ 'recipe_engine/step',
+ 'rietveld',
+]
+
+def RunSteps(api):
+ api.path['checkout'] = api.path['slave_build']
+ api.rietveld.apply_issue('foo', 'bar', authentication='oauth2')
+ api.rietveld.calculate_issue_root({'project': ['']})
+
+
+def GenTests(api):
+ yield (api.test('basic')
+ + api.properties(issue=1,
+ patchset=1,
+ rietveld='http://review_tool.url')
+ )
« no previous file with comments | « recipe_modules/rietveld/api.py ('k') | recipe_modules/rietveld/example.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698