diff options
| -rw-r--r-- | gitlab/v4/objects.py | 1 | ||||
| -rw-r--r-- | tools/python_test_v4.py | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index d2af890..8b94f07 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -2153,6 +2153,7 @@ class ProjectCommit(RESTObject): post_data = {"branch": branch} self.manager.gitlab.http_post(path, post_data=post_data, **kwargs) + class ProjectCommitManager(RetrieveMixin, CreateMixin, RESTManager): _path = "/projects/%(project_id)s/repository/commits" _obj_cls = ProjectCommit diff --git a/tools/python_test_v4.py b/tools/python_test_v4.py index 7c97899..f5d5df0 100644 --- a/tools/python_test_v4.py +++ b/tools/python_test_v4.py @@ -466,8 +466,9 @@ discussion = commit.discussions.get(discussion.id) commit.revert(branch="master") revert_commit = admin_project.commits.list()[0] -expected_message = "Revert \"{}\"\n\nThis reverts commit {}".format( - commit.message, commit.id) +expected_message = 'Revert "{}"\n\nThis reverts commit {}'.format( + commit.message, commit.id +) assert revert_commit.message == expected_message try: |
