Skip to content

Commit dbd6305

Browse files
chore: auto fixes from pre-commit.com hooks
1 parent a379593 commit dbd6305

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

main_test.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ def test_first_failure_keeps_banner_and_later_failures_use_no_banner(self):
133133
MagicMock(returncode=1, stdout="Type subject_imperative check failed\n"),
134134
]
135135
with patch("main.subprocess.run", side_effect=results) as mock_run:
136-
main.run_pr_message_checks(["ok first", "bad second", "bad third"], io.StringIO())
136+
main.run_pr_message_checks(
137+
["ok first", "bad second", "bad third"], io.StringIO()
138+
)
137139

138140
self.assertEqual(
139141
mock_run.call_args_list[0][0][0], ["commit-check", "--message"]
@@ -162,15 +164,20 @@ def test_later_failure_prefix_uses_short_separator_without_extra_blank_lines(sel
162164
]
163165
result_file = io.StringIO()
164166
with patch("main.subprocess.run", side_effect=results):
165-
main.run_pr_message_checks(["ok first", "bad second", "bad third"], result_file)
167+
main.run_pr_message_checks(
168+
["ok first", "bad second", "bad third"], result_file
169+
)
166170

167171
output = result_file.getvalue()
168172
self.assertIn("--- Commit 2/3: bad second\nCommit rejected.\n", output)
169173
self.assertIn(
170174
f"{main.COMMIT_SECTION_SEPARATOR}--- Commit 3/3: bad third\n",
171175
output,
172176
)
173-
self.assertNotIn("------------------------------------------------------------------------", output)
177+
self.assertNotIn(
178+
"------------------------------------------------------------------------",
179+
output,
180+
)
174181
self.assertNotIn("\n\n\n", output)
175182

176183

0 commit comments

Comments
 (0)