@@ -34,7 +34,10 @@ def test_title_and_intro_present():
3434def test_badges_section_contains_expected_badges ():
3535 text = load_readme_text ()
3636 # Key badges/links in the diff
37- assert "actions/workflow/status/commit-check/commit-check-action/commit-check.yml" in text
37+ assert (
38+ "actions/workflow/status/commit-check/commit-check-action/commit-check.yml"
39+ in text
40+ )
3841 assert "shields.io/github/v/release/commit-check/commit-check-action" in text
3942 assert "Used%20by" in text and "network/dependents" in text
4043 assert "marketplace/actions/commit-check-action" in text
@@ -98,12 +101,21 @@ def test_optional_inputs_section_and_defaults():
98101 text = load_readme_text ()
99102 # Sub-headings for inputs
100103 inputs = [
101- "message" , "branch" , "author-name" , "author-email" ,
102- "commit-signoff" , "merge-base" , "imperative" ,
103- "dry-run" , "job-summary" , "pr-comments" ,
104+ "message" ,
105+ "branch" ,
106+ "author-name" ,
107+ "author-email" ,
108+ "commit-signoff" ,
109+ "merge-base" ,
110+ "imperative" ,
111+ "dry-run" ,
112+ "job-summary" ,
113+ "pr-comments" ,
104114 ]
105115 for name in inputs :
106- assert re .search (rf"^###\s+`{ re .escape (name )} `\s*$" , text , re .M ), f"Missing input heading for `{ name } `"
116+ assert re .search (
117+ rf"^###\s+`{ re .escape (name )} `\s*$" , text , re .M
118+ ), f"Missing input heading for `{ name } `"
107119
108120 # Representative default assertions (avoid overfitting to formatting)
109121 defaults = {
@@ -138,7 +150,10 @@ def test_job_summary_and_pr_comment_screenshots_present():
138150 assert "Success job summary" in text and "Failure job summary" in text
139151 assert "screenshot/success-job-summary.png" in text
140152 assert "screenshot/failure-job-summary.png" in text
141- assert "Success pull request comment" in text and "Failure pull request comment" in text
153+ assert (
154+ "Success pull request comment" in text
155+ and "Failure pull request comment" in text
156+ )
142157 assert "screenshot/success-pr-comments.png" in text
143158 assert "screenshot/failure-pr-comments.png" in text
144159
@@ -155,7 +170,10 @@ def test_badging_section_contains_markdown_and_rst_examples():
155170 # reStructuredText example fenced block
156171 rst_block = re .search (r"(?s)reStructuredText\s+```[\s\S]*?```" , text )
157172 assert rst_block , "Missing reStructuredText badging example fenced block"
158- assert ".. image:: https://github.com/commit-check/commit-check-action/actions/workflows/commit-check.yml/badge.svg" in rst_block .group (0 )
173+ assert (
174+ ".. image:: https://github.com/commit-check/commit-check-action/actions/workflows/commit-check.yml/badge.svg"
175+ in rst_block .group (0 )
176+ )
159177
160178
161179def test_versioning_and_feedback_sections_present ():
@@ -179,4 +197,5 @@ def test_top_badges_appear_near_top_of_file():
179197
180198
181199# The tests above intentionally avoid asserting volatile values (like exact counts)
182- # while thoroughly validating structure and key content introduced/changed in the diff.
200+ # while thoroughly validating structure and key content introduced/changed in the diff.
201+ # End of file fixed
0 commit comments