mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-02 20:15:24 +02:00
refactor: rewrite cleaner functions for parsing recipe dicts (#1743)
* rewrite cleaner functions * unify verbage * try importing dep during check * fix syntax * allow override defaults * satisfy mypy
This commit is contained in:
parent
77316d639b
commit
89d0cae51d
7 changed files with 918 additions and 347 deletions
|
@ -128,20 +128,20 @@ def test_create_by_url_with_tags(
|
|||
response = api_client.get(api_routes.recipes_slug(slug), headers=unique_user.token)
|
||||
assert response.status_code == 200
|
||||
|
||||
# Verifiy the tags are present
|
||||
# Verifiy the tags are present and title cased
|
||||
expected_tags = {
|
||||
"sauté",
|
||||
"pea",
|
||||
"noodle",
|
||||
"udon noodle",
|
||||
"ramen noodle",
|
||||
"dinner",
|
||||
"main",
|
||||
"vegetarian",
|
||||
"easy",
|
||||
"quick",
|
||||
"weeknight meals",
|
||||
"web",
|
||||
"Sauté",
|
||||
"Pea",
|
||||
"Noodle",
|
||||
"Udon Noodle",
|
||||
"Ramen Noodle",
|
||||
"Dinner",
|
||||
"Main",
|
||||
"Vegetarian",
|
||||
"Easy",
|
||||
"Quick",
|
||||
"Weeknight Meals",
|
||||
"Web",
|
||||
}
|
||||
|
||||
recipe = json.loads(response.text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue