-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: added docstring on Keycloak returned institutions full path, up…
…dated test to include nested institutions.
- Loading branch information
1 parent
136a35f
commit 0e3451b
Showing
2 changed files
with
15 additions
and
3 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 |
---|---|---|
|
@@ -27,7 +27,7 @@ def test_get_me_authed_with_institutions(self, app_fixture: FastAPI, auth_mock: | |
"preferred_username": "test_user", | ||
"email": "[email protected]", | ||
"sub": "testuser123", | ||
"institutions": ["/TEST1LEI", "/TEST2LEI"], | ||
"institutions": ["/TEST1LEI", "/TEST2LEI/TEST2CHILDLEI"], | ||
} | ||
auth_mock.return_value = ( | ||
AuthCredentials(["authenticated"]), | ||
|
@@ -36,7 +36,7 @@ def test_get_me_authed_with_institutions(self, app_fixture: FastAPI, auth_mock: | |
client = TestClient(app_fixture) | ||
res = client.get("/v1/admin/me") | ||
assert res.status_code == 200 | ||
assert res.json().get("institutions") == ["TEST1LEI", "TEST2LEI"] | ||
assert res.json().get("institutions") == ["TEST1LEI", "TEST2CHILDLEI"] | ||
|
||
def test_update_me_unauthed(self, app_fixture: FastAPI, unauthed_user_mock: Mock): | ||
client = TestClient(app_fixture) | ||
|