mirror of
https://github.com/haiwen/seahub.git
synced 2025-05-06 15:06:43 +00:00
[tests] Update view_lib_file
This commit is contained in:
parent
d6bd2e9bab
commit
6f51aec1cc
@ -56,7 +56,7 @@ class ViewLibFileTest(BaseTestCase):
|
||||
resp = self.client.get(url)
|
||||
self.assertEqual(200, resp.status_code)
|
||||
self.assertTemplateUsed(resp, 'view_file_base.html')
|
||||
assert resp.context['err'] == 'invalid extension'
|
||||
assert resp.context['err'] == 'Online view is not applicable to this file format'
|
||||
|
||||
@patch('seahub.views.file.FILE_PREVIEW_MAX_SIZE', -1)
|
||||
def test_file_size_exceeds_limit(self):
|
||||
|
Loading…
Reference in New Issue
Block a user