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
ba8b1850
Commit
ba8b1850
authored
Apr 30, 2015
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove timeout test, sometimes it manages to execute
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
20ee59eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
weblate/trans/tests/test_machine.py
weblate/trans/tests/test_machine.py
+0
-19
No files found.
weblate/trans/tests/test_machine.py
View file @
ba8b1850
...
...
@@ -20,10 +20,8 @@
import
httpretty
from
django.test
import
TestCase
from
weblate
import
appsettings
from
weblate.trans.tests.test_views
import
ViewTestCase
from
weblate.trans.models.unit
import
Unit
from
weblate.trans.machine.base
import
MachineTranslationError
from
weblate.trans.machine.dummy
import
DummyTranslation
from
weblate.trans.machine.glosbe
import
GlosbeTranslation
from
weblate.trans.machine.mymemory
import
MyMemoryTranslation
...
...
@@ -261,20 +259,3 @@ class WeblateTranslationTest(ViewTestCase):
self
.
user
)
self
.
assertEqual
(
results
,
[])
def
test_similar_timeout
(
self
):
backup
=
appsettings
.
MT_WEBLATE_LIMIT
try
:
appsettings
.
MT_WEBLATE_LIMIT
=
0
machine
=
WeblateSimilarTranslation
()
unit
=
Unit
.
objects
.
all
()[
0
]
self
.
assertRaises
(
MachineTranslationError
,
machine
.
translate
,
unit
.
translation
.
language
.
code
,
unit
.
get_source_plurals
()[
0
],
unit
,
self
.
user
)
finally
:
appsettings
.
MT_WEBLATE_LIMIT
=
backup
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