diff options
author | Nejc Habjan <hab.nejc@gmail.com> | 2020-02-18 17:31:34 +0100 |
---|---|---|
committer | Nejc Habjan <hab.nejc@gmail.com> | 2020-02-18 17:31:34 +0100 |
commit | ad3e833671c49db194c86e23981215b13b96bb1d (patch) | |
tree | e85113b813c96fd64cb623c068c434d5a587de66 | |
parent | 5298964ee7db8a610f23de2d69aad8467727ca97 (diff) | |
download | gitlab-ad3e833671c49db194c86e23981215b13b96bb1d.tar.gz |
style: fix black violations
-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: |