1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 22:01:06 +00:00

Remove unused APIs

Group messages and personal messages related API is no longer used
This commit is contained in:
Daniel Pan
2016-01-11 00:02:17 +08:00
parent fcfb24445e
commit af0ab3e221
3 changed files with 1 additions and 597 deletions

View File

@@ -10,15 +10,6 @@ from tests.api.apitestbase import ApiTestBase
from tests.api.urls import LIST_GROUP_AND_CONTACTS_URL, SERVER_INFO_URL
class MiscApiTest(ApiTestBase, TestCase):
def test_list_group_and_contacts(self):
res = self.get(LIST_GROUP_AND_CONTACTS_URL).json()
self.assertIsNotNone(res)
self.assertIsInstance(res['contacts'], list)
self.assertIsNotNone(res['umsgnum'])
self.assertIsNotNone(res['replynum'])
self.assertIsInstance(res['groups'], list)
self.assertIsNotNone(res['gmsgnum'])
self.assertIsNotNone(res['newreplies'])
def test_server_info(self):
r = requests.get(SERVER_INFO_URL)