Skip to content

Commit bce2a7c

Browse files
committed
Add integration test for Asset#edit
Caught a bug in the code which is now fixed
1 parent 04549c1 commit bce2a7c

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

github3/repos/release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def edit(self, name, label=None):
207207
self._remove_none(edit_data)
208208
r = self._patch(
209209
self._api,
210-
data=edit_data,
210+
data=json.dumps(edit_data),
211211
headers=Release.CUSTOM_HEADERS
212212
)
213213
successful = self._boolean(r, 200, 404)

0 commit comments

Comments
 (0)