-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix SCIM API error on patch with nested attributes (#1952)
* Fixed SCIM API for nested profile attributes * Fix the bug
- Loading branch information
1 parent
fc0b492
commit 59cbf92
Showing
2 changed files
with
25 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,6 +92,10 @@ def test_scim_post_user(staff_client): | |
"schemas": [constants.SchemaURI.USER], | ||
"emailOptIn": 1, | ||
"fullName": "Billy Bob", | ||
"name": { | ||
"givenName": "Billy", | ||
"familyName": "Bob", | ||
}, | ||
} | ||
), | ||
} | ||
|
@@ -107,7 +111,7 @@ def test_scim_post_user(staff_client): | |
assert user is not None | ||
assert user.email == "[email protected]" | ||
assert user.username == "jsmith" | ||
assert user.first_name == "Jimmy" | ||
assert user.last_name == "Smith" | ||
assert user.first_name == "Billy" | ||
assert user.last_name == "Bob" | ||
assert user.profile.name == "Billy Bob" | ||
assert user.profile.email_optin is True |