From afc2a5b8af8e5bda9a20e9374b094c4148883479 Mon Sep 17 00:00:00 2001 From: Sergio Abad Date: Thu, 10 Oct 2024 00:19:34 +0200 Subject: [PATCH] remove get variations from test --- tests/integration_test.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/integration_test.py b/tests/integration_test.py index 093d01b..58dcfb3 100644 --- a/tests/integration_test.py +++ b/tests/integration_test.py @@ -23,7 +23,7 @@ def setUpClass(cls): cls.api = AmazonApi(api_key, api_secret, affiliate_tag, country_code) cls.affiliate_tag = affiliate_tag - def test_search_items_and_get_info_and_variations_for_the_first_one(self): + def test_search_items_and_get_information_for_the_first_one(self): search_result = self.api.search_items(keywords="zapatillas") searched_item = search_result.items[0] @@ -34,9 +34,3 @@ def test_search_items_and_get_info_and_variations_for_the_first_one(self): self.assertEqual(1, len(get_results)) self.assertIn(self.affiliate_tag, get_results[0].detail_page_url) - - variations_result = self.api.get_variations(searched_item.asin) - variation_item = variations_result.items[0] - - self.assertIn(self.affiliate_tag, variation_item.detail_page_url) - self.assertNotEqual(searched_item.asin, variation_item.asin)