Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 27, 2024
1 parent f8ac87f commit d80d15f
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions tests/integration/gitlab/test_comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,21 @@ def test_get_reactions(self):
assert len(pr_comment.get_reactions()) == 3

def test_duplicit_reactions(self):
pr = self.service.get_project(repo="hello-world", namespace="packit-service").get_pr(1149)
pr = self.service.get_project(
repo="hello-world", namespace="packit-service",
).get_pr(1149)
pr_comment = pr.get_comments()[-1]
pr_reaction_1 = pr_comment.add_reaction("tractor")
pr_reaction_2 = pr_comment.add_reaction("tractor")

pr_reaction_1 = pr_comment.add_reaction("tractor")
pr_reaction_2 = pr_comment.add_reaction("tractor")
assert pr_reaction_1._raw_reaction.id == pr_reaction_2._raw_reaction.id

issue = self.service.get_project(
repo="hello-world",
namespace="packit-service",
).get_issue(12)
issue_comment = issue.get_comments()[-1]
issue_comment = issue.get_comments()[-1]

issue_reaction_1 = issue_comment.add_reaction("tractor")
issue_reaction_2 = issue_comment.add_reaction("tractor")
assert issue_reaction_1._raw_reaction.id == issue_reaction_2._raw_reaction.id
issue_reaction_1 = issue_comment.add_reaction("tractor")
issue_reaction_2 = issue_comment.add_reaction("tractor")
assert issue_reaction_1._raw_reaction.id == issue_reaction_2._raw_reaction.id

0 comments on commit d80d15f

Please sign in to comment.