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') |