Skip to content

Commit

Permalink
fix: tests with extra mapping email field
Browse files Browse the repository at this point in the history
  • Loading branch information
johanseto committed Jan 31, 2024
1 parent 21653ee commit a214b3c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion common/djangoapps/third_party_auth/api/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit a214b3c

Please sign in to comment.