1
0
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:
zheng xie 2018-08-31 14:05:17 +08:00 committed by GitHub
parent d6bd2e9bab
commit 6f51aec1cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):