Skip to content

Commit

Permalink
Update test to comply with flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
mbourqui authored and bittner committed Apr 11, 2020
1 parent d14d472 commit 1ce265d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions analytical/tests/test_tag_google_analytics_gtag.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ class GoogleAnalyticsTagTestCase(TagTestCase):

def test_tag(self):
r = self.render_tag('google_analytics_gtag', 'google_analytics_gtag')
self.assertTrue("""<script async src="https://www.googletagmanager.com/gtag/js?id=UA-123456-7"></script>""" in r, r)
self.assertTrue(
'<script async src="https://www.googletagmanager.com/gtag/js?id=UA-123456-7"></script>'
in r, r)
self.assertTrue("gtag('js', new Date());" in r, r)
self.assertTrue("gtag('config', 'UA-123456-7');" in r, r)

def test_node(self):
r = GoogleAnalyticsGTagNode().render(Context())
self.assertTrue("""<script async src="https://www.googletagmanager.com/gtag/js?id=UA-123456-7"></script>""" in r, r)
self.assertTrue(
'<script async src="https://www.googletagmanager.com/gtag/js?id=UA-123456-7"></script>'
in r, r)
self.assertTrue("gtag('js', new Date());" in r, r)
self.assertTrue("gtag('config', 'UA-123456-7');" in r, r)

Expand Down

0 comments on commit 1ce265d

Please sign in to comment.