fixed userpreference test and added user info to recipe endpoint

This commit is contained in:
vabene1111
2024-12-19 20:08:13 +01:00
parent b9e5126ab4
commit ecdb1e9fee
10 changed files with 1855 additions and 31 deletions

View File

@@ -31,7 +31,7 @@ def test_preference_list(u1_s1, u2_s1, u1_s2):
assert r.status_code == 200
response = json.loads(r.content)
assert len(response) == 1
assert response[0]['user'] == auth.get_user(u1_s1).id
assert response[0]['user']['id'] == auth.get_user(u1_s1).id
@pytest.mark.parametrize("arg", [