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
bdad106a
Commit
bdad106a
authored
Dec 02, 2015
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not change type on init
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
1a345a51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
weblate/trans/tests/test_checks.py
weblate/trans/tests/test_checks.py
+7
-7
No files found.
weblate/trans/tests/test_checks.py
View file @
bdad106a
...
...
@@ -95,10 +95,10 @@ class CheckTestCase(TestCase):
self
.
test_empty
=
(
''
,
''
,
''
)
self
.
test_good_matching
=
(
'string'
,
'string'
,
''
)
self
.
test_good_none
=
(
'string'
,
'string'
,
''
)
self
.
test_good_ignore
=
None
self
.
test_failure_1
=
None
self
.
test_failure_2
=
None
self
.
test_failure_3
=
None
self
.
test_good_ignore
=
()
self
.
test_failure_1
=
()
self
.
test_failure_2
=
()
self
.
test_failure_3
=
()
self
.
test_ignore_check
=
(
'x'
,
'x'
,
self
.
check
.
ignore_string
if
self
.
check
else
''
)
...
...
@@ -107,7 +107,7 @@ class CheckTestCase(TestCase):
'''
Performs single check if we have data to test.
'''
if
data
is
None
or
self
.
check
is
None
:
if
not
data
or
self
.
check
is
None
:
return
result
=
self
.
check
.
check_single
(
data
[
0
],
...
...
@@ -169,7 +169,7 @@ class CheckTestCase(TestCase):
)
def
test_check_failure_1_singular
(
self
):
if
self
.
test_failure_1
is
None
or
self
.
check
is
None
:
if
not
self
.
test_failure_1
or
self
.
check
is
None
:
return
self
.
assertTrue
(
self
.
check
.
check_target
(
...
...
@@ -180,7 +180,7 @@ class CheckTestCase(TestCase):
)
def
test_check_failure_1_plural
(
self
):
if
self
.
test_failure_1
is
None
or
self
.
check
is
None
:
if
not
self
.
test_failure_1
or
self
.
check
is
None
:
return
self
.
assertTrue
(
self
.
check
.
check_target
(
...
...
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