Skip to content

Commit

Permalink
Add title-only update test
Browse files Browse the repository at this point in the history
  • Loading branch information
TheByronHimes committed May 13, 2024
1 parent 27888e4 commit 0a9672d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_outbox_subscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ async def test_user_data_upsert(
{"email": "different@example.com"},
{"name": "another name", "email": "anders@example.com"},
{},
{"title": event_schemas.AcademicTitle.PROF},
],
ids=["name", "email", "both", "neither"],
ids=["name", "email", "both", "neither", "title"],
)
async def test_user_reregistration_notifications(
joint_fixture: JointFixture,
Expand All @@ -138,7 +139,7 @@ async def test_user_reregistration_notifications(

# Prepare the expected notification.
expected_notifications = []
if changed_details:
if "name" in changed_details or "email" in changed_details:
expected_notifications.append(
event_schemas.Notification(
recipient_email=TEST_USER.email
Expand Down

0 comments on commit 0a9672d

Please sign in to comment.