Skip to content

Commit

Permalink
remove get variations from test
Browse files Browse the repository at this point in the history
  • Loading branch information
sergioteula committed Oct 9, 2024
1 parent ae44f9d commit afc2a5b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand All @@ -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)

0 comments on commit afc2a5b

Please sign in to comment.