1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-28 08:06:56 +00:00

Update test_view_lib_file.py (#7066)

This commit is contained in:
Ranjiwei
2024-11-20 10:51:35 +08:00
committed by GitHub
parent 5f6de21b19
commit 717f5d21f1

View File

@@ -133,12 +133,6 @@ class ViewLibFileTest(BaseTestCase):
self.assertTemplateUsed(resp, 'common_file_view_react.html')
assert resp.context['filetype'].lower() == 'pdf'
# token for doc file is one time only
raw_path = resp.context['raw_path']
r = requests.get(raw_path)
self.assertEqual(200, r.status_code)
r = requests.get(raw_path)
self.assertEqual(403, r.status_code)
def test_img_file(self):
self.login_as(self.user)