summaryrefslogtreecommitdiff
path: root/tools/python_test_v4.py
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2020-02-19 00:30:48 +0100
committerNejc Habjan <hab.nejc@gmail.com>2020-02-19 00:30:48 +0100
commitb77b945c7e0000fad4c422a5331c7e905e619a33 (patch)
treee82aec1111c26849470b4567bafdab848f8d152a /tools/python_test_v4.py
parentad3e833671c49db194c86e23981215b13b96bb1d (diff)
downloadgitlab-b77b945c7e0000fad4c422a5331c7e905e619a33.tar.gz
fix: return response with commit data
Diffstat (limited to 'tools/python_test_v4.py')
-rw-r--r--tools/python_test_v4.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/python_test_v4.py b/tools/python_test_v4.py
index f5d5df0..49f99e5 100644
--- a/tools/python_test_v4.py
+++ b/tools/python_test_v4.py
@@ -463,13 +463,12 @@ discussion = commit.discussions.get(discussion.id)
# assert len(discussion.attributes["notes"]) == 1
# Revert commit
-commit.revert(branch="master")
-revert_commit = admin_project.commits.list()[0]
+revert_commit = commit.revert(branch="master")
expected_message = 'Revert "{}"\n\nThis reverts commit {}'.format(
commit.message, commit.id
)
-assert revert_commit.message == expected_message
+assert revert_commit["message"] == expected_message
try:
commit.revert(branch="master")