Commit 383a8c2d authored by Michal Čihař's avatar Michal Čihař

Use MockUnit for consistency checks as well

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent ee94a656
......@@ -26,6 +26,7 @@ from django.test import TestCase
from weblate.trans.checks.consistency import (
PluralsCheck,
)
from weblate.trans.tests.test_checks import MockUnit
class PluralsCheckTest(TestCase):
......@@ -36,19 +37,19 @@ class PluralsCheckTest(TestCase):
self.assertFalse(self.check.check_target(
['string'],
['string'],
None
MockUnit('plural_none'),
))
def test_empty(self):
self.assertFalse(self.check.check_target(
['string', 'plural'],
['', ''],
None
MockUnit('plural_empty'),
))
def test_partial_empty(self):
self.assertTrue(self.check.check_target(
['string', 'plural'],
['string', ''],
None
MockUnit('plural_partial_empty'),
))
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