-
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.
Update/include email in processed application data (#476)
* Add updated user.py module * Add user to function call in processed application function call * Modify ProcessedXApplicationData classes to include email attr * fix pytests --------- Co-authored-by: Albert Wang <[email protected]>
- Loading branch information
Showing
5 changed files
with
14 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
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 |
---|---|---|
|
@@ -40,6 +40,7 @@ | |
"frq_change": "I am pkfire", | ||
"frq_video_game": "I am pkfire", | ||
"application_type": "Hacker", | ||
"email": "[email protected]", | ||
} | ||
|
||
|
||
|
@@ -302,7 +303,7 @@ def test_application_data_is_bson_encodable() -> None: | |
data = EXPECTED_APPLICATION_DATA.model_copy() | ||
data.linkedin = HttpUrl("https://linkedin.com") | ||
encoded = bson.encode(EXPECTED_APPLICATION_DATA.model_dump()) | ||
assert len(encoded) == 378 | ||
assert len(encoded) == 404 | ||
|
||
|
||
@patch("services.mongodb_handler.retrieve_one", autospec=True) | ||
|
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 |
---|---|---|
|
@@ -45,6 +45,7 @@ | |
"mentor_team_help_saq4": "", | ||
"other_questions": "", | ||
"application_type": "Mentor", | ||
"email": "[email protected]", | ||
} | ||
|
||
|
||
|
@@ -253,7 +254,7 @@ def test_mentor_application_data_is_bson_encodable() -> None: | |
data = EXPECTED_APPLICATION_DATA.model_copy() | ||
data.linkedin = HttpUrl("https://linkedin.com") | ||
encoded = bson.encode(EXPECTED_APPLICATION_DATA.model_dump()) | ||
assert len(encoded) == 486 | ||
assert len(encoded) == 512 | ||
|
||
|
||
@patch("services.mongodb_handler.retrieve_one", autospec=True) | ||
|
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