mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-02 20:15:24 +02:00
Refactor/recipe routes (#370)
* format with black * black format * flake8 * remove bar exceptions * remove test for depreciated route * recipe settings editr * add sqlite Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
parent
5dafe8fbb5
commit
1dc051f562
38 changed files with 179 additions and 224 deletions
|
@ -34,11 +34,6 @@ def test_create_no_image(api_client: TestClient, api_routes: AppRoutes, token, r
|
|||
assert json.loads(response.text) == "banana-bread-no-image"
|
||||
|
||||
|
||||
def test_read_all_post(api_client: TestClient, api_routes: AppRoutes):
|
||||
response = api_client.post(api_routes.recipes, json={"properties": ["slug", "description", "rating"]})
|
||||
assert response.status_code == 200
|
||||
|
||||
|
||||
@pytest.mark.parametrize("recipe_data", recipe_test_data)
|
||||
def test_read_update(api_client: TestClient, api_routes: AppRoutes, recipe_data, token):
|
||||
recipe_url = api_routes.recipes_recipe_slug(recipe_data.expected_slug)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue