[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-07-26 12:41:52 +00:00
commit b78cb3ba0b

View file

@ -143,7 +143,10 @@ def test_citation_title_strips_brackets_for_catalog_and_citation():
# the model to copy the catalog title verbatim into the link label, where a bracket makes the
# citation unmatchable. The catalog and the citation writer share this helper so they cannot
# offer a label the validator then fails to match.
assert _citation_title({"title": "[PDF] Annual Report 2024"}, "https://x/a") == "PDF Annual Report 2024"
assert (
_citation_title({"title": "[PDF] Annual Report 2024"}, "https://x/a")
== "PDF Annual Report 2024"
)
assert _citation_title({"title": "[]"}, "https://x/a") == "https://x/a"
assert _citation_title({}, "https://x/a") == "https://x/a"