Skip to content

Commit 9fff27c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5c01427 commit 9fff27c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/conftest.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,11 @@ def _create_event(event_type, delivery_id=None, **data):
275275
delivery_id = seq.next()
276276

277277
# Auto-create comment field for comment events
278-
if event_type in ["issue_comment", "pull_request_review_comment", "commit_comment"] and "comment" not in data:
278+
if (
279+
event_type
280+
in ["issue_comment", "pull_request_review_comment", "commit_comment"]
281+
and "comment" not in data
282+
):
279283
data["comment"] = {"body": faker.sentence()}
280284

281285
# Auto-create review field for pull request review events

0 commit comments

Comments
 (0)