mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 07:27:04 +00:00
Upgrade rest_framework to 3.3.3 to fix html render error in web api
ref: https://forum.seafile.com/t/6-3-6-pro-api-broken-user-feedback-as-i-go/7356/5
This commit is contained in:
11
tests/api/test_ping.py
Normal file
11
tests/api/test_ping.py
Normal file
@@ -0,0 +1,11 @@
|
||||
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)
|
Reference in New Issue
Block a user