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

update profile user (#5985)

This commit is contained in:
欢乐马
2024-03-19 10:52:04 +08:00
committed by GitHub
parent 4efbe19381
commit 6b67a76689
3 changed files with 8 additions and 9 deletions

View File

@@ -73,8 +73,8 @@ class AccountTest(BaseTestCase):
resp = self.client.get(self.url)
json_resp = json.loads(resp.content)
assert json_resp['email'] == self.user_name
assert json_resp['name'] == email2nickname(self.user_name)
assert json_resp['contact_email'] == email2contact_email(self.user_name)
assert json_resp['name'] == (profile.nickname if profile.nickname else '')
assert json_resp['contact_email'] == (profile.contact_email if profile.contact_email else '')
assert json_resp['telephone'] == d_profile.telephone
assert json_resp['login_id'] == profile.login_id
assert 'list_in_address_book' in json_resp