Skip to content

Commit

Permalink
feat: add full name attribute to pearson vue request
Browse files Browse the repository at this point in the history
  • Loading branch information
Ang-m4 committed Feb 24, 2025
1 parent 272e294 commit cba5b7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eox_nelp/pearson_vue/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@ def setUp(self):
self.user.first_name = "Test"
self.user.last_name = "User"
self.user.email = "test@example.com"
self.user.profile.name = "Test User"
self.user.profile.country.code = "US"
self.user.profile.city = "Test City"
self.user.profile.phone_number = "123-456-7890"
Expand All @@ -599,6 +600,7 @@ def test_get_user_data(self):
"""
expected_result = {
"username": "testuser",
"full_name": "Test User",
"first_name": "Test",
"last_name": "User",
"email": "test@example.com",
Expand Down
1 change: 1 addition & 0 deletions eox_nelp/pearson_vue/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def get_user_data(user):
"""
user_data = {
"username": user.username,
"full_name": user.profile.name,
"first_name": user.first_name,
"last_name": user.last_name,
"email": user.email,
Expand Down

0 comments on commit cba5b7e

Please sign in to comment.