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

merge seahub-extra & repair test

This commit is contained in:
王健辉
2021-09-22 11:42:06 +08:00
parent e805feca95
commit 3b154c76c1
10 changed files with 29 additions and 34 deletions

View File

@@ -31,10 +31,8 @@ class FileCommentsTest(BaseTestCase):
self.assertEqual(200, resp.status_code)
json_resp = json.loads(resp.content)
assert len(resp._headers.get('links')) == 2
assert resp._headers.get('links')[0] == 'Links'
link = reverse('api2-file-comments', args=[self.repo.id]) + '?page=1&per_page=5'
assert link in resp._headers.get('links')[1]
assert link in resp.headers.get('links')
assert len(json_resp['comments']) == 5
assert json_resp['comments'][0]['comment'] == 'test comment5'
assert json_resp['comments'][0]['user_email'] == self.tmp_user.email