Skip to content

Commit

Permalink
remove custom handling of ratings_count
Browse files Browse the repository at this point in the history
  • Loading branch information
jknndy committed May 10, 2024
1 parent bb905af commit 4b49808
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ def test_func(self):
for key in OPTIONAL_TESTS:
if key not in expect:
continue # If the key isn't present, skip
if key == "ratings_count":
continue
with self.subTest(key):
scraper_func = getattr(actual, key)
self.assertEqual(
Expand All @@ -115,12 +113,6 @@ def test_func(self):
msg=f"The actual value for .{key}() did not match the expected value.",
)

# Special handling for ratings_count
if "ratings_count" in expect.keys():
with self.subTest("ratings_count"):
ratings_count = actual.ratings_count()
self.assertGreaterEqual(expect["ratings_count"], ratings_count)

grouped = []
for group in actual.ingredient_groups():
grouped.extend(group.ingredients)
Expand Down

0 comments on commit 4b49808

Please sign in to comment.