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

Unified Diff: recipe_modules/url/tests/join.py

Issue 2868333004: Add URL recipe module from "depot_tools". (Closed)
Patch Set: Update comments with exceptions Created 3 years, 7 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/url/test_api.py ('k') | recipe_modules/url/tests/join.expected/basic.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/url/tests/join.py
diff --git a/recipe_modules/url/tests/join.py b/recipe_modules/url/tests/join.py
new file mode 100644
index 0000000000000000000000000000000000000000..049f6ce8468afcaf866de13bfddbfdb6ba974faf
--- /dev/null
+++ b/recipe_modules/url/tests/join.py
@@ -0,0 +1,23 @@
+# Copyright 2017 The LUCI Authors. All rights reserved.
+# Use of this source code is governed under the Apache License, Version 2.0
+# that can be found in the LICENSE file.
+
+DEPS = [
+ 'step',
+ 'url',
+]
+
+
+def RunSteps(api):
+ api.step('step1',
+ ['/bin/echo', api.url.join('foo', 'bar', 'baz')])
+ api.step('step2',
+ ['/bin/echo', api.url.join('foo/', '/bar/', '/baz')])
+ api.step('step3',
+ ['/bin/echo', api.url.join('//foo/', '//bar//', '//baz//')])
+ api.step('step4',
+ ['/bin/echo', api.url.join('//foo/bar//', '//baz//')])
+
+
+def GenTests(api):
+ yield api.test('basic')
« no previous file with comments | « recipe_modules/url/test_api.py ('k') | recipe_modules/url/tests/join.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698