1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-03 04:25:24 +02:00

updated tests to include userId

This commit is contained in:
Michael Genson 2024-02-23 18:09:35 +00:00
parent ac3514f4c6
commit 4a13714177

View file

@ -34,6 +34,7 @@ def test_shopping_lists_create_one(api_client: TestClient, unique_user: TestUser
assert response_list["name"] == payload["name"]
assert response_list["groupId"] == str(unique_user.group_id)
assert response_list["userId"] == str(unique_user.user_id)
def test_shopping_lists_get_one(api_client: TestClient, unique_user: TestUser, shopping_lists: list[ShoppingListOut]):
@ -47,6 +48,7 @@ def test_shopping_lists_get_one(api_client: TestClient, unique_user: TestUser, s
assert response_list["id"] == str(shopping_list.id)
assert response_list["name"] == shopping_list.name
assert response_list["groupId"] == str(shopping_list.group_id)
assert response_list["userId"] == str(shopping_list.user_id)
def test_shopping_lists_update_one(
@ -58,6 +60,7 @@ def test_shopping_lists_update_one(
"name": random_string(10),
"id": str(sample_list.id),
"groupId": str(sample_list.group_id),
"userId": str(sample_list.user_id),
"listItems": [],
}
@ -71,6 +74,7 @@ def test_shopping_lists_update_one(
assert response_list["id"] == str(sample_list.id)
assert response_list["name"] == payload["name"]
assert response_list["groupId"] == str(sample_list.group_id)
assert response_list["userId"] == str(sample_list.user_id)
def test_shopping_lists_delete_one(