Reformat asserts

This commit is contained in:
Andras Schmelczer 2022-06-25 10:39:31 +02:00
parent 9b8b288ba6
commit cbd9f8472b
No known key found for this signature in database
GPG key ID: 0EA1BC97D0AB076E
10 changed files with 77 additions and 77 deletions

View file

@ -8,9 +8,9 @@ class TestGetSentences(unittest.TestCase):
text = "This is a complete sentence. So is this. However this is n" # ot.
expected = ["This is a complete sentence.", "So is this.", "However this is n"]
self.assertEqual(get_sentences(text), expected)
self.assertEqual(get_sentences(text, ignore_partial=True), expected[0:2])
assert get_sentences(text) == expected
assert get_sentences(text, ignore_partial=True) == expected[0:2]
def test_empty(self) -> None:
self.assertEqual(get_sentences(""), [])
self.assertEqual(get_sentences("", ignore_partial=True), [])
assert get_sentences("") == []
assert get_sentences("", ignore_partial=True) == []