def test_contribute_to_analytical(self):
     """
     `facebook_pixel.contribute_to_analytical` registers the head and body nodes.
     """
     template_nodes = _load_template_nodes()
     self.assertEqual({
         'head_top': [],
         'head_bottom': [FacebookPixelHeadNode],
         'body_top': [],
         'body_bottom': [FacebookPixelBodyNode],
     }, template_nodes)
 def test_contribute_to_analytical(self):
     """
     `hotjar.contribute_to_analytical` registers the head and body nodes.
     """
     template_nodes = _load_template_nodes()
     assert template_nodes == {
         'head_top': [],
         'head_bottom': [HotjarNode],
         'body_top': [],
         'body_bottom': [],
     }
Ejemplo n.º 3
0
 def test_contribute_to_analytical(self):
     """
     `facebook_pixel.contribute_to_analytical` registers the head and body nodes.
     """
     template_nodes = _load_template_nodes()
     assert template_nodes == {
         'head_top': [],
         'head_bottom': [FacebookPixelHeadNode],
         'body_top': [],
         'body_bottom': [FacebookPixelBodyNode],
     }
Ejemplo n.º 4
0
 def test_contribute_to_analytical(self):
     """
     `hotjar.contribute_to_analytical` registers the head and body nodes.
     """
     template_nodes = _load_template_nodes()
     self.assertEqual({
         'head_top': [],
         'head_bottom': [HotjarNode],
         'body_top': [],
         'body_bottom': [],
     }, template_nodes)
Ejemplo n.º 5
0
 def test_contribute_to_analytical(self):
     """
     `luckyorange.contribute_to_analytical` registers the head and body nodes.
     """
     template_nodes = _load_template_nodes()
     self.assertEqual(
         {
             'head_top': [],
             'head_bottom': [LuckyOrangeNode],
             'body_top': [],
             'body_bottom': [],
         }, template_nodes)
Ejemplo n.º 6
0
 def tearDown(self):
     analytical.TAG_MODULES = self._tag_modules
     analytical.template_nodes = analytical._load_template_nodes()
     super(AnalyticsTagTestCase, self).tearDown()
Ejemplo n.º 7
0
 def setUp(self):
     super(AnalyticsTagTestCase, self).setUp()
     self._tag_modules = analytical.TAG_MODULES
     analytical.TAG_MODULES = ['analytical.tests.dummy']
     analytical.template_nodes = analytical._load_template_nodes()
 def tearDown(self):
     analytical.TAG_MODULES = self._tag_modules
     analytical.template_nodes = analytical._load_template_nodes()
     super(AnalyticsTagTestCase, self).tearDown()
 def setUp(self):
     super(AnalyticsTagTestCase, self).setUp()
     self._tag_modules = analytical.TAG_MODULES
     analytical.TAG_MODULES = ['analytical.tests.dummy']
     analytical.template_nodes = analytical._load_template_nodes()
 def setUp(self):
     super().setUp()
     self._tag_modules = analytical.TAG_MODULES
     analytical.TAG_MODULES = ['tests.testproject.dummy']
     analytical.template_nodes = analytical._load_template_nodes()