Commit f30d1019 authored by Weblate's avatar Weblate

Merge remote-tracking branch 'origin/master'

parents 0256a4b7 5d8b6db7
......@@ -7,3 +7,4 @@ weblate-*.tar.*
/translate
/*.db
/weblate/settings.py
/weblate/test-repos/
......@@ -129,3 +129,15 @@ class SubProjectTest(RepoTestCase):
)
self.assertTrue(second.is_repo_link())
self.assertEqual(second.translation_set.count(), 2)
class TranslationTest(RepoTestCase):
'''
Translation testing.
'''
def test_basic(self):
project = self.create_subproject()
translation = project.translation_set.get(language_code='cs')
self.assertEqual(translation.translated, 0)
self.assertEqual(translation.total, 4)
self.assertEqual(translation.fuzzy, 0)
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