Add a test for PUT request with a json file
Change-Id: I8017ef84689122e7dd43854372ff1e776c0a2b97
David Pursehouse
5 years ago
145 | 145 | gerrit_api.put("/changes/" + change_id + "/edit/foo", |
146 | 146 | data="Content with non base64 valid chars åäö") |
147 | 147 | |
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 | ||
148 | 155 | def test_get_base64_data(self, gerrit_api): |
149 | 156 | """Test a GET request on an API that returns base64 encoded response. |
150 | 157 |