Commit a7a4c654 authored by Michal Čihař's avatar Michal Čihař

Make dummy translation produce results compatible with real ones

parent ffb0b89c
......@@ -39,7 +39,7 @@ class DummyTranslation(MachineTranslation):
'''
if text.strip() == 'Hello, world!':
return [
'Nazdar světe!',
'Ahoj světe!',
('Nazdar světe!', 100),
('Ahoj světe!', 100),
]
return []
......@@ -57,7 +57,7 @@ class JSViewsTest(ViewTestCase):
data = simplejson.loads(response.content)
self.assertEqual(
data,
['Nazdar světe!', 'Ahoj světe!']
[['Nazdar světe!', 100], ['Ahoj světe!', 100]]
)
def test_get_other(self):
......
......@@ -48,7 +48,7 @@ class MachineTranslationTest(TestCase):
)
self.assertEqual(
machine_translation.translate('cs', 'Hello, world!'),
['Nazdar světe!', 'Ahoj světe!']
[('Nazdar světe!', 100), ('Ahoj světe!', 100)]
)
def test_glosbe(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment