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

Unified Diff: unittests/errors_test.py

Issue 2771723006: [recipes.cfg] ONLY support jsonpb. (Closed)
Patch Set: remove comment Created 3 years, 9 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_engine/unittests/fetch_test.py ('k') | unittests/package_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: unittests/errors_test.py
diff --git a/unittests/errors_test.py b/unittests/errors_test.py
index ab8d4a5ebf9fe4d9cb288f93d31e77e9a101c26f..4b48b042f73d555d7390f403972e6204776ab31b 100755
--- a/unittests/errors_test.py
+++ b/unittests/errors_test.py
@@ -21,17 +21,19 @@ class RecipeRepo(object):
self._recipes_cfg = os.path.join(
self._root, 'infra', 'config', 'recipes.cfg')
with open(self._recipes_cfg, 'w') as fh:
- fh.write("""
-api_version: 1
-project_id: "testproj"
-recipes_path: "%s"
-deps {
- project_id: "recipe_engine"
- url: "%s"
- branch: "master"
- revision: "HEAD"
-}
-""" % (recipes_path, ROOT_DIR))
+ json.dump({
+ "api_version": 1,
+ "project_id": "testproj",
+ "recipes_path": recipes_path,
+ "deps": [
+ {
+ "project_id": "recipe_engine",
+ "url": ROOT_DIR,
+ "branch": "master",
+ "revision": "HEAD"
+ }
+ ]
+ }, fh)
self._recipes_dir = os.path.join(self._root, 'recipes')
os.mkdir(self._recipes_dir)
self._modules_dir = os.path.join(self._root, 'recipe_modules')
« no previous file with comments | « recipe_engine/unittests/fetch_test.py ('k') | unittests/package_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698