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

remove unused rest_framework files (#4729)

* remove unused rest_framework files

* update

Co-authored-by: lian <lian@seafile.com>
This commit is contained in:
lian
2020-11-26 21:15:16 +08:00
committed by GitHub
parent 3fd6f0f68b
commit e3fd4091f6
16 changed files with 1 additions and 1550 deletions

View File

@@ -1,11 +1,7 @@
from seahub.test_utils import BaseTestCase
class PingTest(BaseTestCase):
def test_can_ping(self):
resp = self.client.get('/api2/ping/')
self.assertEqual(200, resp.status_code)
def test_html_ping(self):
headers = {'HTTP_ACCEPT': 'text/html'}
resp = self.client.get('/api2/ping/', **headers)
self.assertEqual(200, resp.status_code)