Corrected NameChangedEvent assumptions and log output to match Owncast webhook payloads.
CI / Formatting (push) Successful in 6s
CI / Linting (push) Successful in 5s
CI / Tests (Python 3.12) (push) Successful in 2m47s
CI / Tests (Python 3.13) (push) Successful in 2m50s
CI / Tests (Python 3.14) (push) Successful in 2m42s
CI / Type Checking (push) Successful in 9s
CI / Spelling (push) Successful in 5s
CI / Formatting (push) Successful in 6s
CI / Linting (push) Successful in 5s
CI / Tests (Python 3.12) (push) Successful in 2m47s
CI / Tests (Python 3.13) (push) Successful in 2m50s
CI / Tests (Python 3.14) (push) Successful in 2m42s
CI / Type Checking (push) Successful in 9s
CI / Spelling (push) Successful in 5s
This commit is contained in:
@@ -174,7 +174,8 @@ def make_name_changed_event(
|
||||
) -> NameChangedEvent:
|
||||
"""Build a NameChangedEvent with sensible test defaults.
|
||||
|
||||
:param user: The user changing names; defaults to ``make_user()``.
|
||||
:param user: The user changing names; defaults to a user whose
|
||||
``display_name`` matches ``new_name``.
|
||||
:param client_id: Client connection identifier.
|
||||
:param new_name: The new display name.
|
||||
:param event_id: Unique event identifier.
|
||||
@@ -182,7 +183,7 @@ def make_name_changed_event(
|
||||
:return: A populated NameChangedEvent instance.
|
||||
"""
|
||||
return NameChangedEvent(
|
||||
user=user if user is not None else make_user(),
|
||||
user=user if user is not None else make_user(display_name=new_name),
|
||||
client_id=client_id,
|
||||
new_name=new_name,
|
||||
event_id=event_id,
|
||||
|
||||
Reference in New Issue
Block a user