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
01458901
Commit
01458901
authored
Oct 08, 2015
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move auto translation test to separate class
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
02ad21aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
weblate/trans/tests/test_views.py
weblate/trans/tests/test_views.py
+17
-15
No files found.
weblate/trans/tests/test_views.py
View file @
01458901
...
...
@@ -649,21 +649,6 @@ class EditTest(ViewTestCase):
self
.
assertFalse
(
self
.
subproject
.
repo_needs_push
())
self
.
assertFalse
(
self
.
subproject
.
project
.
repo_needs_push
())
def
test_auto
(
self
):
'''
Tests for automatic translation.
'''
# Need extra power
self
.
user
.
is_superuser
=
True
self
.
user
.
save
()
# Default params
url
=
reverse
(
'auto_translation'
,
kwargs
=
self
.
kw_translation
)
response
=
self
.
client
.
post
(
url
)
self
.
assertRedirects
(
response
,
self
.
translation_url
)
def
test_fuzzy
(
self
):
'''
Test for fuzzy flag handling.
...
...
@@ -964,3 +949,20 @@ class SourceStringsTest(ViewTestCase):
reverse
(
'show_source'
,
kwargs
=
self
.
kw_subproject
)
)
self
.
assertContains
(
response
,
'Test/Test'
)
class
AutoTranslationTest
(
ViewTestCase
):
def
test_auto
(
self
):
'''
Tests for automatic translation.
'''
# Need extra power
self
.
user
.
is_superuser
=
True
self
.
user
.
save
()
# Default params
url
=
reverse
(
'auto_translation'
,
kwargs
=
self
.
kw_translation
)
response
=
self
.
client
.
post
(
url
)
self
.
assertRedirects
(
response
,
self
.
translation_url
)
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