mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-02 20:15:24 +02:00
* fixes #625 * update dependencies * bump version * fix failing tests Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
parent
bf06482b29
commit
940663a22d
14 changed files with 214 additions and 193 deletions
|
@ -59,9 +59,8 @@ def test_read_update(api_client: TestClient, api_routes: AppRoutes, recipe_data:
|
|||
assert response.status_code == 200
|
||||
assert json.loads(response.text).get("slug") == recipe_data.expected_slug
|
||||
|
||||
response = api_client.get(recipe_url)
|
||||
response = api_client.get(recipe_url, headers=user_token)
|
||||
assert response.status_code == 200
|
||||
print(response)
|
||||
recipe = json.loads(response.text)
|
||||
|
||||
assert recipe["notes"] == test_notes
|
||||
|
|
|
@ -80,7 +80,7 @@ def test_cleaner_instructions(instructions):
|
|||
def test_html_with_recipe_data():
|
||||
path = TEST_RAW_HTML.joinpath("healthy_pasta_bake_60759.html")
|
||||
url = "https://www.bbc.co.uk/food/recipes/healthy_pasta_bake_60759"
|
||||
recipe_data = open_graph.basic_recipe_from_opengraph(open(path, encoding="utf8").read(), url)
|
||||
recipe_data = open_graph.basic_recipe_from_opengraph(path.read_text(), url)
|
||||
|
||||
assert len(recipe_data["name"]) > 10
|
||||
assert len(recipe_data["slug"]) > 10
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue