-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1202 from uc-cdis/feat/remove_role_from_admin_end…
…points Feat: remove role from POST /admin/user endpoint
- Loading branch information
Showing
4 changed files
with
3 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,10 +25,10 @@ def test_get_user(db_session, awg_users): | |
|
||
|
||
def test_create_user(db_session, oauth_client): | ||
adm.create_user(db_session, "insert_user", "admin", "[email protected]") | ||
adm.create_user(db_session, "insert_user", "[email protected]") | ||
user = db_session.query(User).filter(User.username == "insert_user").first() | ||
assert user.username == "insert_user" | ||
assert user.is_admin == True | ||
assert user.is_admin == False # DEPRECATED field. | ||
assert user.email == "[email protected]" | ||
assert user.display_name is None | ||
assert user.phone_number is None | ||
|
@@ -46,7 +46,6 @@ def test_create_user_with_all_fields_set(db_session, oauth_client): | |
adm.create_user( | ||
db_session, | ||
"insert_user", | ||
None, | ||
"[email protected]", | ||
"Dummy Name", | ||
"+310000", | ||
|