Skip to content

Commit

Permalink
Fix new ellipsis tests
Browse files Browse the repository at this point in the history
  • Loading branch information
devonh committed Jun 24, 2024
1 parent d4a8467 commit 122a252
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sygnal/gcmpushkin.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ def _build_data(
continue
if len(value) > MAX_BYTES_PER_FIELD:
overflow_fields += 1
value = value[:MAX_BYTES_PER_FIELD-3] + "…"
value = value[: MAX_BYTES_PER_FIELD - 3] + "…"
data["content_" + attr] = value
del data["content"]

Expand Down
2 changes: 1 addition & 1 deletion tests/test_gcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def test_api_v1_large_fields(self) -> None:
xxxxxxxxxxooooooooooxxxxxxxxxxooooooooooxxxxxxxxxxooooooooooxxxxxxxxxx\
ooooooooooxxxxxxxxxxooooooooooxxxxxxxxxxooooooooooxxxxxxxxxxoooooooooo\
xxxxxxxxxxooooooooooxxxxxxxxxxooooooooooxxxxxxxxxxooooooooooxxxxxxxxxx\
ooooooooooxxxxxxxxxxooooooooooxxxxxxxxxxooooooooooxxxx...",
ooooooooooxxxxxxxxxxooooooooooxxxxxxxxxxoooooooooox…",
"room_id": "!slw48wfj34rtnrf:example.com",
"prio": "high",
"unread": "2",
Expand Down

0 comments on commit 122a252

Please sign in to comment.