Simplify formatting of Intercom test code

This commit is contained in:
Peter Bittner 2025-07-08 17:03:56 +02:00
parent a246d62ae0
commit 25d08a8633

View file

@ -68,13 +68,7 @@ class IntercomTagTestCase(TagTestCase):
email='test@example.com',
date_joined=now,
)
r = IntercomNode().render(
Context(
{
'user': user,
}
)
)
r = IntercomNode().render(Context({'user': user}))
assert (
'window.intercomSettings = {"app_id": "abc123xyz", "created_at": 1397074500, '
f'"email": "test@example.com", "name": "Firstname Lastname", "user_id": {user.pk}}};'