mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 23:29:49 +00:00
use api to set user quota/profile
This commit is contained in:
@@ -77,7 +77,7 @@ class AccountTest(BaseTestCase):
|
||||
|
||||
resp = self._do_get_info()
|
||||
json_resp = json.loads(resp.content)
|
||||
assert len(json_resp) == 7
|
||||
assert len(json_resp) == 9
|
||||
assert json_resp['email'] == self.user1.username
|
||||
assert json_resp['is_staff'] is False
|
||||
assert json_resp['is_active'] is True
|
||||
@@ -104,7 +104,7 @@ class AccountTest(BaseTestCase):
|
||||
self.assertEqual(Profile.objects.get_profile_by_user(
|
||||
self.user1.username).intro, 'this_is_user1')
|
||||
self.assertEqual(seafile_api.get_user_quota(
|
||||
self.user1.username), 102400)
|
||||
self.user1.username), 102400000000)
|
||||
|
||||
def test_refresh_profile_cache_after_update(self):
|
||||
self.login_as(self.admin)
|
||||
|
Reference in New Issue
Block a user