add shadowExpire to api test member assert thing

This commit is contained in:
Rio Liu 2021-11-28 11:14:13 -05:00
parent 73a085f971
commit 8f4b2560b4
2 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,7 @@ def test_api_create_user(cfg, create_user_resp, mock_mail_server):
"mail_local_addresses": ["test_1@csclub.internal"],
"forwarding_addresses": ['test_1@uwaterloo.internal'],
"password": "krb5"
"shadowExpire": False,
}},
]
assert data == expected

View File

@ -171,6 +171,7 @@ def test_user_to_dict(cfg):
'home_directory': user.home_directory,
'is_club': False,
'is_club_rep': False,
'shadowExpire': False,
}
assert user.to_dict() == expected