Skip to content

Commit

Permalink
fixup! Fix linting issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
funilrys committed Jul 16, 2022
1 parent 21f91c3 commit ea7c1dd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/helpers/test_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,13 @@ def test_custom_sort(self) -> None:
"""

given = copy.deepcopy(self.str_test_subject)
custom_method = lambda x: x[-1] if x else x

expected = ["", " ", "!", "world!", "world", "hello", "hello", "Hello"]
actual = self.helper.set_subject(given).custom_sort(custom_method).subject
actual = (
self.helper.set_subject(given)
.custom_sort(lambda x: x[-1] if x else x)
.subject
)

self.assertEqual(expected, actual)

Expand Down

0 comments on commit ea7c1dd

Please sign in to comment.