Skip to content

Commit

Permalink
fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jakkdl committed Sep 2, 2024
1 parent a8b3931 commit 4a30295
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/towncrier/test/test_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,12 +475,19 @@ def test_trailing_block(self) -> None:
"1",
"feature",
0,
): "this fragment has a trailing code block::\n\n def foo(): ...\n\n \n def bar(): ...",
): (
"this fragment has a trailing code block::\n\n"
"def foo(): ...\n\n \n def bar(): ..."
),
(
"2",
"feature",
0,
): "this block is not trailing::\n\n def foo(): ...\n def bar(): ...\n\nso we can append the issue number directly after this",
): (
"this block is not trailing::\n\n"
"def foo(): ...\n def bar(): ..."
"\n\nso we can append the issue number directly after this"
),
}
}
# the line with 3 spaces (and nothing else) is stripped
Expand Down

0 comments on commit 4a30295

Please sign in to comment.