Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Fix deactivate a user if he does not have a profile #10252

Merged
merged 5 commits into from
Jul 6, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update tests/rest/admin/test_user.py
  • Loading branch information
richvdh authored Jul 6, 2021
commit 78fbd2facd85b70c4977a1da250dcc96410922cf
3 changes: 2 additions & 1 deletion tests/rest/admin/test_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,8 @@ def test_deactivate_user_erase_true_no_profile(self):
if user has no profile information (stored in the database table `profiles`).
"""

# Delete profile information
# Users normally have an entry in `profiles`, but occasionally they are created without one.
# To test deactivation for users without a profile, we delete the profile information for our user.
self.get_success(
self.store.db_pool.simple_delete_one(
table="profiles", keyvalues={"user_id": "user"}
Expand Down