From a214b3c6e503c1831e85f54b1da081d4aa4a12a1 Mon Sep 17 00:00:00 2001 From: Johan Castiblanco Date: Mon, 29 Jan 2024 15:20:10 -0500 Subject: [PATCH] fix: tests with extra mapping email field --- common/djangoapps/third_party_auth/api/tests/test_views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/djangoapps/third_party_auth/api/tests/test_views.py b/common/djangoapps/third_party_auth/api/tests/test_views.py index aea4c18367e..8b13f4cfb7c 100644 --- a/common/djangoapps/third_party_auth/api/tests/test_views.py +++ b/common/djangoapps/third_party_auth/api/tests/test_views.py @@ -38,7 +38,10 @@ def get_mapping_data_by_usernames(usernames): """ Generate mapping data used in response """ - return [{'username': username, 'remote_id': 'remote_' + username} for username in usernames] + return [ + {"username": username, "remote_id": "remote_" + username, "email": f"{username}@example.com"} + for username in usernames + ] class TpaAPITestCase(ThirdPartyAuthTestMixin, APITestCase):