Example #1
0
 def test_click_through(self):
     with my_vcr.use_cassette(
             "fixtures/ac.cnstrc.com/click-through-success.yaml"):
         constructor = ConstructorIO(**HTTPS_ARGS)
         resp = constructor.track_click_through(
             term="Stanley_Steamer",
             autocomplete_section="Search Suggestions")
         assert resp is True
 def test_click_through(self):
     with vcr.use_cassette(
             "fixtures/ac.cnstrc.com/click-through-success.yaml"):
         constructor = ConstructorIO(**HTTPS_ARGS)
         resp = constructor.track_click_through(
             term="Stanley_Steamer",
             autocomplete_section="Search Suggestions"
         )
         assert resp is True
 def test_click_through(self):
     with vcr.use_cassette(
             "fixtures/ac.cnstrc.com/click-through-success.yaml"):
         constructor = ConstructorIO(api_token="apiToken",
                                     autocomplete_key="autocompleteKey",
                                     protocol="http",
                                     host="ac.cnstrc.com")
         resp = constructor.track_click_through(
             term="Stanley_Steamer",
             autocomplete_section="Search Suggestions")
         assert resp == True
 def test_click_through(self):
     with vcr.use_cassette("fixtures/ac.cnstrc.com/click-through-success.yaml"):
         constructor = ConstructorIO(
             api_token = "apiToken",
             autocomplete_key = "autocompleteKey",
             protocol = "http",
             host = "ac.cnstrc.com"
         )
         resp = constructor.track_click_through(
             term = "Stanley_Steamer",
             autocomplete_section = "Search Suggestions"
         )
         assert resp == True