-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
36 additions
and
33 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
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
|
||
from app.core import models_core | ||
from app.core.groups.groups_type import AccountType, GroupType | ||
from app.core.schools.schools_type import SchoolType | ||
from tests.commons import ( | ||
create_api_access_token, | ||
create_user_with_groups, | ||
|
@@ -140,6 +141,7 @@ def test_create_user_by_user_with_email( | |
"/users/create", | ||
json={ | ||
"email": email, | ||
"school_id": SchoolType.centrale_lyon.value, | ||
}, | ||
) | ||
assert response.status_code == expected_code | ||
|
@@ -157,6 +159,7 @@ def test_create_and_activate_user(mocker: MockerFixture, client: TestClient) -> | |
"/users/create", | ||
json={ | ||
"email": "[email protected]", | ||
"school_id": SchoolType.centrale_lyon.value, | ||
}, | ||
) | ||
assert response.status_code == 201 | ||
|
@@ -210,9 +213,9 @@ def test_update_batch_create_users(client: TestClient) -> None: | |
response = client.post( | ||
"/users/batch-creation", | ||
json=[ | ||
{"email": "[email protected]"}, | ||
{"email": "[email protected]"}, | ||
{"email": "[email protected]"}, | ||
{"email": "[email protected]", "school_id": SchoolType.centrale_lyon.value}, | ||
{"email": "[email protected]", "school_id": SchoolType.centrale_lyon.value}, | ||
{"email": "[email protected]", "school_id": SchoolType.centrale_lyon.value}, | ||
], | ||
headers={"Authorization": f"Bearer {token_admin_user}"}, | ||
) | ||
|