Skip to content

Commit

Permalink
remove flaky assert
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma67 committed Dec 31, 2023
1 parent 70a260b commit e88792b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,13 +325,11 @@ def test_get_search_suggestions(self):
self.assertGreaterEqual(len(result), 0)

# add search term to history
first_pass = self.yt_auth.search("b")
first_pass = self.yt_brand.search("b")
self.assertGreater(len(first_pass), 0)
time.sleep(3)
# get results
results = self.yt_auth.get_search_suggestions("b", detailed_runs=True)
self.assertGreater(len(results), 0)
self.assertTrue(any(item["fromHistory"] for item in results))
self.assertTrue(any(not item["fromHistory"] for item in results))

################
Expand Down

0 comments on commit e88792b

Please sign in to comment.