Skip to content

Commit

Permalink
feat: add full name attribute to pearson vue request (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ang-m4 authored Feb 25, 2025
1 parent bb307f3 commit f0954cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eox_nelp/pearson_vue/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,13 +579,12 @@ def setUp(self):
"""
self.user = MagicMock(
username="testuser",
full_name="Test User",
first_name="Test",
last_name="User",
email="test@example.com",
profile=MagicMock(
country=MagicMock(code="US"),

name="Test User",
city="Test City",
phone_number="123-456-7890",
mailing_address="123 Test St",
Expand All @@ -607,6 +606,7 @@ def test_get_user_data(self):
"""
expected_result = {
"username": self.user.username,
"full_name": self.user.profile.name,
"first_name": self.user.first_name,
"last_name": self.user.last_name,
"email": self.user.email,
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 f0954cd

Please sign in to comment.