Skip to content

Commit

Permalink
style: fix black violations
Browse files Browse the repository at this point in the history
  • Loading branch information
nejch committed Feb 18, 2020
1 parent 5298964 commit ad3e833
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions gitlab/v4/objects.py
Expand Up @@ -2153,6 +2153,7 @@ def revert(self, branch, **kwargs):
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
Expand Down
5 changes: 3 additions & 2 deletions tools/python_test_v4.py
Expand Up @@ -466,8 +466,9 @@
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:
Expand Down

0 comments on commit ad3e833

Please sign in to comment.