Skip to content

Commit

Permalink
test: ensure trailing space isn't removed during auto-format
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKing committed Mar 21, 2024
1 parent acfbcf5 commit 1107a4d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_wrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,10 @@
Test Testing Test Testing Test Testing Test Testing Test Testing
"""

TICKET_020 = """
SPACE = " "
TICKET_020 = f"""
- first line first line first line first line first line first line first line
whitespace
whitespace{SPACE}
- second line
"""
TICKET_020_TRUE_79 = """
Expand Down Expand Up @@ -125,4 +126,4 @@ def test_wrap(text: str, expected: str, align_lists: bool, wrap: int):
extensions={"mkdocs"},
)
print_text(output, expected)
assert output.strip() == expected.strip()
assert output.lstrip() == expected.lstrip()

0 comments on commit 1107a4d

Please sign in to comment.