mirror of
https://github.com/chidiwilliams/buzz.git
synced 2026-03-14 22:55:46 +01:00
Fixed translation in tests
This commit is contained in:
parent
1d6d5b03d7
commit
aad5798ef6
1 changed files with 3 additions and 3 deletions
|
|
@ -24,7 +24,7 @@ class TestParseBatchResponse:
|
|||
result = Translator._parse_batch_response(response, 3)
|
||||
assert len(result) == 3
|
||||
assert result[0] == "Hello"
|
||||
assert result[1] == _("Translation error, see logs!")
|
||||
assert result[1] == ""
|
||||
assert result[2] == "World"
|
||||
|
||||
def test_multiline_entries(self):
|
||||
|
|
@ -44,8 +44,8 @@ class TestParseBatchResponse:
|
|||
response = ""
|
||||
result = Translator._parse_batch_response(response, 2)
|
||||
assert len(result) == 2
|
||||
assert result[0] == _("Translation error, see logs!")
|
||||
assert result[1] == _("Translation error, see logs!")
|
||||
assert result[0] == ""
|
||||
assert result[1] == ""
|
||||
|
||||
def test_whitespace_handling(self):
|
||||
response = "[1] Hello with spaces \n[2] World "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue