mirror of
https://github.com/jazzband/django-analytical.git
synced 2026-03-16 22:20:25 +00:00
Simplify formatting of Intercom test code
This commit is contained in:
parent
a246d62ae0
commit
25d08a8633
1 changed files with 1 additions and 7 deletions
|
|
@ -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}}};'
|
||||
|
|
|
|||
Loading…
Reference in a new issue