Skip to content

Commit 57fd60c

Browse files
zanecodesJohnVillalovos
authored andcommitted
test(api): Ensure ProjectMergeRequestDiscussionNote.resolved can be updated successfully
1 parent 39dc990 commit 57fd60c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/functional/api/test_merge_requests.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ def test_merge_request_discussion(project):
6969
discussion = mr.discussions.get(discussion.id)
7070
assert discussion.attributes["notes"][-1]["body"] == "updated body"
7171

72+
note_from_get = discussion.notes.get(note.id)
73+
note_from_get.resolved = True
74+
note_from_get.save()
75+
76+
discussion = mr.discussions.get(discussion.id)
77+
assert discussion.attributes["notes"][-1]["resolved"] is True
78+
7279
note_from_get.delete()
7380

7481

0 commit comments

Comments
 (0)