mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-08 23:58:15 -05:00
ingredients and helpers
This commit is contained in:
@@ -25,7 +25,7 @@ class TestEditsRecipe(TestBase):
|
||||
for test in test_list:
|
||||
with open(test['file'], 'rb') as file:
|
||||
print(f'Testing {test["file"]} expecting length {test["result_length"]}')
|
||||
parsed_content = json.loads(get_from_html(file.read(), 'test_url').content)
|
||||
parsed_content = json.loads(get_from_html(file.read(), 'test_url', None).content)
|
||||
self.assertEqual(len(str(parsed_content)), test['result_length'])
|
||||
file.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user