Commit 87feb87b authored by Michal Čihař's avatar Michal Čihař

Do not test abstract class

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 42883b9d
......@@ -24,7 +24,6 @@ Helpers for quality checks tests.
from django.test import TestCase
import uuid
from weblate.trans.checks.base import Check
class MockLanguage(object):
......@@ -88,7 +87,7 @@ class CheckTestCase(TestCase):
Generic test, also serves for testing base class.
'''
def setUp(self):
self.check = Check()
self.check = None
self.test_empty = ('', '', '')
self.test_good_matching = ('string', 'string', '')
self.test_good_none = ('string', 'string', '')
......@@ -102,7 +101,7 @@ class CheckTestCase(TestCase):
'''
Performs single check if we have data to test.
'''
if data is None:
if data is None or self.checks is None:
return
result = self.check.check_single(
data[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