def test_search_num_res(self): with my_vcr.use_cassette("fixtures/ac.cnstrc.com/search-success.yaml"): constructor = ConstructorIO(**HTTPS_ARGS) resp = constructor.track_search( term="Stanley_Steamer", num_results=10, autocomplete_section="Search Suggestions") assert resp is True
def test_search_num_res(self): with vcr.use_cassette("fixtures/ac.cnstrc.com/search-success.yaml"): constructor = ConstructorIO(**HTTPS_ARGS) resp = constructor.track_search( term="Stanley_Steamer", num_results=10, autocomplete_section="Search Suggestions" ) assert resp is True
def test_search_num_res(self): with vcr.use_cassette("fixtures/ac.cnstrc.com/search-success.yaml"): constructor = ConstructorIO(api_token="apiToken", autocomplete_key="autocompleteKey", protocol="http", host="ac.cnstrc.com") resp = constructor.track_search( term="Stanley_Steamer", num_results=10, autocomplete_section="Search Suggestions") assert resp == True
def test_search_no_num_res(self): with vcr.use_cassette("fixtures/ac.cnstrc.com/search-noname-success.yaml"): constructor = ConstructorIO( api_token = "apiToken", autocomplete_key = "autocompleteKey", protocol = "http", host = "ac.cnstrc.com" ) resp = constructor.track_search( term = "Stanley_Steamer", num_results = 10, autocomplete_section = "Search Suggestions" ) assert resp == True