Codebase list python-pygerrit2 / 3c29786
Add a test for PUT request with a json file Change-Id: I8017ef84689122e7dd43854372ff1e776c0a2b97 David Pursehouse 5 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
145145 gerrit_api.put("/changes/" + change_id + "/edit/foo",
146146 data="Content with non base64 valid chars åäö")
147147
148 def test_put_json_content(self, gerrit_api):
149 """Test a PUT request with a json file content (issue #54)."""
150 change_id = self._get_test_change(gerrit_api)["id"]
151 content = """{"foo" : "bar"}"""
152 gerrit_api.put("/changes/" + change_id + "/edit/file.json",
153 data=content)
154
148155 def test_get_base64_data(self, gerrit_api):
149156 """Test a GET request on an API that returns base64 encoded response.
150157