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

Unified Diff: recipe_engine/unittests/fetch_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/package.py ('k') | unittests/errors_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_engine/unittests/fetch_test.py
diff --git a/recipe_engine/unittests/fetch_test.py b/recipe_engine/unittests/fetch_test.py
index caa355a7e4ee201cf00d9ba3da1dd548b3cf595f..78058e2b359f93d38711f152dd201a8081e9eaec 100755
--- a/recipe_engine/unittests/fetch_test.py
+++ b/recipe_engine/unittests/fetch_test.py
@@ -192,11 +192,11 @@ class TestGitiles(unittest.TestCase):
@mock.patch('tarfile.open')
@mock.patch('requests.get')
def test_checkout(self, requests_get, tarfile_open, makedirs, rmtree):
- proto_text = u"""
-api_version: 1
-project_id: "foo"
-recipes_path: "path/to/recipes"
-""".lstrip()
+ proto_text = u"""{
+ "api_version": 1,
+ "project_id": "foo",
+ "recipes_path": "path/to/recipes"
+}""".lstrip()
requests_get.side_effect = [
mock.Mock(text=u')]}\'\n{ "commit": "abc123" }', status_code=200),
mock.Mock(text=base64.b64encode(proto_text), status_code=200),
« no previous file with comments | « recipe_engine/package.py ('k') | unittests/errors_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698