mirror of
https://github.com/jazzband/django-analytical.git
synced 2026-03-16 22:20:25 +00:00
Breaking long strings into multiple lines
This commit is contained in:
parent
d98e815493
commit
ee956230ea
1 changed files with 3 additions and 4 deletions
|
|
@ -62,7 +62,7 @@ class GoogleAnalyticsTagTestCase(TagTestCase):
|
|||
r = self.render_tag('google_analytics_gtag', 'google_analytics_gtag')
|
||||
self.assertTrue(
|
||||
('<script async src="https://www.googletagmanager.com/gtag/' +
|
||||
'js?id=G-12345678"></script>')
|
||||
'js?id=G-12345678"></script>')
|
||||
in r, r)
|
||||
self.assertTrue("gtag('js', new Date());" in r, r)
|
||||
self.assertTrue("gtag('config', 'G-12345678');" in r, r)
|
||||
|
|
@ -72,7 +72,7 @@ class GoogleAnalyticsTagTestCase(TagTestCase):
|
|||
r = self.render_tag('google_analytics_gtag', 'google_analytics_gtag')
|
||||
self.assertTrue(
|
||||
('<script async src="https://www.googletagmanager.com/gtag/' +
|
||||
'js?id=AW-1234567890"></script>')
|
||||
'js?id=AW-1234567890"></script>')
|
||||
in r, r)
|
||||
self.assertTrue("gtag('js', new Date());" in r, r)
|
||||
self.assertTrue("gtag('config', 'AW-1234567890');" in r, r)
|
||||
|
|
@ -82,8 +82,7 @@ class GoogleAnalyticsTagTestCase(TagTestCase):
|
|||
r = self.render_tag('google_analytics_gtag', 'google_analytics_gtag')
|
||||
self.assertTrue(
|
||||
('<script async src="https://www.googletagmanager.com/gtag/' +
|
||||
'js?id=DC-12345678"></script>')
|
||||
'js?id=DC-12345678"></script>')
|
||||
in r, r)
|
||||
self.assertTrue("gtag('js', new Date());" in r, r)
|
||||
self.assertTrue("gtag('config', 'DC-12345678');" in r, r)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue