Commit 6579676a authored by Michal Čihař's avatar Michal Čihař

Test invalid offset handling

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 06c01517
......@@ -139,6 +139,15 @@ class SearchViewTest(ViewTestCase):
response,
'Thank you for using Weblate.',
)
# Invalid offset
response = self.client.get(
self.translate_url,
{'sid': search_id, 'offset': 'bug'}
)
self.assertContains(
response,
'http://demo.weblate.org/',
)
# Go to end
response = self.client.get(
self.translate_url,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment