1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 07:55:36 +00:00

move seahub-extra import inside api (#4221)

* move seahub-extra import inside api

* fix repos api, delete CCNET_SERVER_PORT

* fix test cases
This commit is contained in:
Leo
2019-11-05 16:54:58 +08:00
committed by Daniel Pan
parent 8f861c003b
commit d95da0bff1
11 changed files with 15 additions and 106 deletions

View File

@@ -121,7 +121,6 @@ class AdminUserTest(BaseTestCase):
assert 'is_staff' in json_resp
assert 'is_active' in json_resp
assert 'create_time' in json_resp
assert 'department' in json_resp
assert 'quota_total' in json_resp
assert 'quota_usage' in json_resp
@@ -266,23 +265,6 @@ class AdminUserTest(BaseTestCase):
json_resp = json.loads(resp.content)
self.assertEqual(400, resp.status_code)
def test_update_department(self):
self.login_as(self.admin)
# change user name
department = randstring(10)
data = {"email": self.tmp_email, "department": department}
resp = self.client.put(self.url, json.dumps(data),
'application/json')
json_resp = json.loads(resp.content)
self.assertEqual(200, resp.status_code)
assert json_resp['department'] == department
d_profile = DetailedProfile.objects.get_detailed_profile_by_user(self.tmp_email)
assert d_profile.department == department
def test_update_quota_total(self):
self.login_as(self.admin)