Skip to content

Commit

Permalink
. t fixed 2 whitespace tests
Browse files Browse the repository at this point in the history
if  you are editing these tests AND Black is on then you need to
make sure the configuration is turned on

Co-Authored-By: 4dsherwood <4dsherwood@users.noreply.github.com>
Co-Authored-By: Susan Fung <38925660+susanfung@users.noreply.github.com>
Co-Authored-By: blade290 <43077216+blade290@users.noreply.github.com>
Co-Authored-By: T. E. Green <78671457+Tegsy@users.noreply.github.com>
  • Loading branch information
5 people committed Mar 24, 2024
1 parent ec244b9 commit dac7c8a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_inline_approvals.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,24 +164,24 @@ def test_with_labeled_input_inline(self) -> None:
def get_preceding_whitespace():
return " 4 whitespaces"


# fmt: off
def test_preceding_whitespace():
"""
4 whitespaces
4 whitespaces
"""
verify(get_preceding_whitespace(), options=Options().inline(show_code=True))


def test_trailing_whitespace():
"""
4 trailing whitespaces
4 trailing whitespaces
"""
# Note: Pycharm will remove the trailing whitespaces, to disable this go to:
# File -> Settings -> Editor -> General -> On Save -> [ ] Remove trailing spaces
verify("4 trailing whitespaces ", options=Options().inline(show_code=False))

# fmt: on

# 2. [ ] fix inline bug with blank lines <- from todo list
def test_bug_blank_lines():
"""
Expand Down

0 comments on commit dac7c8a

Please sign in to comment.