1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-10-21 02:42:26 +00:00

Merge branch '7.1' into master

This commit is contained in:
lian
2020-12-03 12:03:51 +08:00
28 changed files with 108 additions and 1409 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)