Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alsyx committed Feb 24, 2025
1 parent 3bd8887 commit 8ee1f3b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def uk_staff_location():
)


@pytest.fixture(autouse=True, scope="function")
@pytest.fixture(scope="function")
def manager_user():
return User.objects.create_user(
sso_email_id="[email protected]",
Expand Down
12 changes: 8 additions & 4 deletions core/schemas/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,23 @@ class PeopleFinderProfileResponseSchema(Schema):
last_name: Optional[str] = Field(alias="last_name")
pronouns: Optional[str] = Field(alias="pronouns")
name_pronunciation: Optional[str] = Field(alias="name_pronunciation")
email_address: Optional[str] = Field(alias="email.address")
contact_email_address: Optional[str] = Field(alias="contact_email.address")
email_address: Optional[str] = Field(alias="email.address", default=None)
contact_email_address: Optional[str] = Field(
alias="contact_email.address", default=None
)
primary_phone_number: Optional[str] = Field(alias="primary_phone_number")
secondary_phone_number: Optional[str] = Field(alias="secondary_phone_number")
photo: Optional[str] = Field(alias="photo")
photo_small: Optional[str] = Field(alias="photo_small")
grade: Optional[str] = Field(alias="grade")
manager_slug: Optional[UUID] = Field(alias="manager.slug")
manager_slug: Optional[UUID] = Field(alias="manager.slug", default=None)
not_employee: Optional[bool] = Field(alias="not_employee")
workdays: Optional[List[str]] = Field(alias="workdays")
remote_working: Optional[str] = Field(alias="remote_working")
usual_office_days: Optional[str] = Field(alias="usual_office_days")
uk_office_location_id: Optional[str] = Field(alias="uk_office_location.code")
uk_office_location_id: Optional[str] = Field(
alias="uk_office_location.code", default=None
)
location_in_building: Optional[str] = Field(alias="location_in_building")
international_building: Optional[str] = Field(alias="international_building")
country_id: Optional[str] = Field(alias="country.reference_id")
Expand Down

0 comments on commit 8ee1f3b

Please sign in to comment.