1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 15:19:06 +00:00

[tests] Remove unnecessary test

This commit is contained in:
zhengxie
2018-12-11 10:26:14 +08:00
parent d73fcf7cc6
commit b4e2460ff7

View File

@@ -45,16 +45,16 @@ class FileCommentsCountsTest(BaseTestCase):
if d.keys()[0] == 'test2.txt':
assert d['test2.txt'] == 1
def test_can_get_file(self):
FileComment.objects.add_by_file_path(repo_id=self.repo.id,
file_path=self.file2,
author=self.user.username,
comment='test comment on other file')
# def test_can_get_file(self):
# FileComment.objects.add_by_file_path(repo_id=self.repo.id,
# file_path=self.file2,
# author=self.user.username,
# comment='test comment on other file')
FileComment.objects.add_by_file_path(repo_id=self.repo.id,
file_path=self.file2,
author=self.user.username,
comment='test comment on other file123')
self.file_request= reverse('api2-file-comments-counts', args=[self.repo.id]) + '?p=' + self.file2
resp = self.client.get(self.file_request)
self.assertEqual(404, resp.status_code)
# FileComment.objects.add_by_file_path(repo_id=self.repo.id,
# file_path=self.file2,
# author=self.user.username,
# comment='test comment on other file123')
# self.file_request= reverse('api2-file-comments-counts', args=[self.repo.id]) + '?p=' + self.file2
# resp = self.client.get(self.file_request)
# self.assertEqual(404, resp.status_code)