From 6f51aec1ccc74b877d7f8b6aa100aead0d12edfe Mon Sep 17 00:00:00 2001 From: zheng xie Date: Fri, 31 Aug 2018 14:05:17 +0800 Subject: [PATCH] [tests] Update view_lib_file --- tests/seahub/views/file/test_view_lib_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/seahub/views/file/test_view_lib_file.py b/tests/seahub/views/file/test_view_lib_file.py index bc68a7619c..c340254c8c 100644 --- a/tests/seahub/views/file/test_view_lib_file.py +++ b/tests/seahub/views/file/test_view_lib_file.py @@ -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):