1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00

[tests] Fix view image file.

This commit is contained in:
zhengxie
2019-02-23 15:11:55 +08:00
parent 70376864b8
commit 1c7f1512bc

View File

@@ -152,7 +152,7 @@ class ViewLibFileTest(BaseTestCase):
resp = self.client.get(url)
self.assertEqual(200, resp.status_code)
self.assertTemplateUsed(resp, 'view_file_image.html')
self.assertTemplateUsed(resp, 'image_file_view_react.html')
assert resp.context['filetype'].lower() == 'image'
assert resp.context['img_next'] == '/foo2.jpg'
assert resp.context['img_prev'] is None