1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-05 21:45:25 +02:00

fix: Recipe comments display a username/id rather than … (#4726)

Co-authored-by: Kuchenpirat <jojow@gmx.net>
Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
This commit is contained in:
Shlok Sheth 2025-01-14 09:00:23 -07:00 committed by GitHub
parent 376c14be9a
commit 4b992afc67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 10 additions and 1 deletions

View file

@ -43,6 +43,7 @@ def test_create_comment(api_client: TestClient, unique_recipe: Recipe, unique_us
assert response_data["recipeId"] == str(unique_recipe.id)
assert response_data["text"] == create_data["text"]
assert response_data["userId"] == str(unique_user.user_id)
assert response_data["user"]["fullName"] == unique_user.full_name
# Check for Proper Association
response = api_client.get(api_routes.recipes_slug_comments(unique_recipe.slug), headers=unique_user.token)