Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
87feb87b
Commit
87feb87b
authored
Mar 27, 2014
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not test abstract class
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
42883b9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
weblate/trans/tests/test_checks.py
weblate/trans/tests/test_checks.py
+2
-3
No files found.
weblate/trans/tests/test_checks.py
View file @
87feb87b
...
...
@@ -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
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment