-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GH-174] - Allow all "whitepages email addresses" to appear for users…
… on all screens (#175) * feat: Show all available employee emails * [Bot] Update version to 2.3.0 --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
2a9e35e
commit 93bc02e
Showing
10 changed files
with
29 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,9 +15,9 @@ FN:{{ display_name }} | |
ORG:University of Washington;{{ dept }} | ||
{% endfor %} | ||
{# EMAIL;type=INTERNET,type=WORK:[email protected] #} | ||
{% if not email is blank -%} | ||
{% for email in emails -%} | ||
EMAIL;type=INTERNET,type=WORK:{{ email }} | ||
{% endif %} | ||
{% endfor %} | ||
{# TEL;type="pager,voice":5558675309 #} | ||
{% for phone in phones -%} | ||
TEL;type="{% for pt in phone['types'] -%} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "uw-husky-directory" | ||
version = "2.2.8" | ||
version = "2.3.0" | ||
description = "An updated version of the UW Directory" | ||
authors = ["Thomas Thorogood <[email protected]>"] | ||
license = "MIT" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,8 +41,10 @@ def test_translate_scenario(self, generate_person): | |
|
||
person = employees.people[0] | ||
|
||
# Ensure student email was overwritten by employee email | ||
assert person.email == "[email protected]" | ||
# Ensure student email is overwritten by employee email, | ||
# and verify that both employee emails are displayed instead of just one. | ||
# More on: https://github.com/UWIT-IAM/uw-husky-directory/blob/main/tests/conftest.py#L135 | ||
assert person.emails == ["[email protected]", "[email protected]"] | ||
assert person.box_number == "351234" | ||
assert person.phone_contacts.phones == ["2068675309 Ext. 4242", "19999674222"] | ||
assert person.departments[0].department == "Cybertronic Engineering" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,15 +87,15 @@ def test_set_employee_vcard_attrs(self, employee): | |
VCardPhone(types=["MSG"], value="5555555"), | ||
] | ||
|
||
assert vcard.email == "[email protected]" | ||
assert vcard.emails == ["[email protected]"] | ||
assert vcard.departments == ["Snack Eating", "Napping"] | ||
assert vcard.titles == ["Chief of Kibble Testing", "Assistant Snuggler"] | ||
|
||
def test_set_student_vcard_attrs(self, student): | ||
vcard = VCard.construct() | ||
self.service.set_student_vcard_attrs(vcard, student) | ||
assert vcard.phones == [VCardPhone(types=["home"], value="4444444")] | ||
assert vcard.email == "[email protected]" | ||
assert vcard.emails == ["[email protected]"] | ||
assert vcard.titles == ["Goodboi"] | ||
assert vcard.departments == ["Barkochemical Engineering"] | ||
|
||
|