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
cd28fdfe
Commit
cd28fdfe
authored
Aug 12, 2015
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test handling of offset in zen mode
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
51f31459
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
weblate/trans/tests/test_views.py
weblate/trans/tests/test_views.py
+22
-0
No files found.
weblate/trans/tests/test_views.py
View file @
cd28fdfe
...
...
@@ -825,6 +825,28 @@ class ZenViewTest(ViewTestCase):
'You have reached end of translating.'
)
def
test_load_zen_offset
(
self
):
response
=
self
.
client
.
get
(
reverse
(
'load_zen'
,
kwargs
=
self
.
kw_translation
),
{
'offset'
:
'1'
}
)
self
.
assertNotContains
(
response
,
'Hello, world'
)
self
.
assertContains
(
response
,
'Orangutan has %d bananas'
)
response
=
self
.
client
.
get
(
reverse
(
'load_zen'
,
kwargs
=
self
.
kw_translation
),
{
'offset'
:
'bug'
}
)
self
.
assertContains
(
response
,
'Hello, world'
)
def
test_save_zen
(
self
):
unit
=
self
.
get_unit
()
params
=
{
...
...
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