Skip to content

Commit

Permalink
Remove extra parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jan 7, 2025
1 parent 1e6dd0f commit ee43c48
Showing 1 changed file with 11 additions and 19 deletions.
30 changes: 11 additions & 19 deletions tests/test_blurb.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,8 @@ def test_unsanitize_section_changed(section, expected):
(
"This is a test of the textwrap_body function with a string. It should wrap the text to 79 characters.",
"",
(
"This is a test of the textwrap_body function with a string. It should wrap\n"
"the text to 79 characters.\n"
),
"This is a test of the textwrap_body function with a string. It should wrap\n"
"the text to 79 characters.\n",
),
(
[
Expand All @@ -63,32 +61,26 @@ def test_unsanitize_section_changed(section, expected):
"It should wrap the text to 79 characters.",
],
"",
(
"This is a test of the textwrap_body function with an iterable of strings. It\n"
"should wrap the text to 79 characters.\n"
),
"This is a test of the textwrap_body function with an iterable of strings. It\n"
"should wrap the text to 79 characters.\n",
),
(
"This is a test of the textwrap_body function with a string and subsequent indent.",
" ",
(
"This is a test of the textwrap_body function with a string and subsequent\n"
" indent.\n"
),
"This is a test of the textwrap_body function with a string and subsequent\n"
" indent.\n",
),
(
"This is a test of the textwrap_body function with a bullet list and subsequent indent. The list should not be wrapped.\n"
"\n"
"* Item 1\n"
"* Item 2\n",
" ",
(
"This is a test of the textwrap_body function with a bullet list and\n"
" subsequent indent. The list should not be wrapped.\n"
"\n"
" * Item 1\n"
" * Item 2\n"
),
"This is a test of the textwrap_body function with a bullet list and\n"
" subsequent indent. The list should not be wrapped.\n"
"\n"
" * Item 1\n"
" * Item 2\n",
),
),
)
Expand Down

0 comments on commit ee43c48

Please sign in to comment.