[Tests] Fix various tests

add new fields to card tests; stop test_get_session from writing into prod db
This commit is contained in:
2026-06-27 18:22:02 +02:00
parent b71e6388fa
commit efa3cbfb58
4 changed files with 10 additions and 19 deletions

View File

@@ -23,7 +23,7 @@ def test_get_cards_for_nonexistent_group(client, auth_headers):
def test_card_operations_by_non_admin(client, test_group, user_auth_headers):
"""Test that non-admin users cannot perform card operations."""
# Try to add a card
response = client.post(f"/api/v1/cards/{test_group.id}", headers=user_auth_headers)
response = client.post(f"/api/v1/cards/", headers=user_auth_headers)
assert response.status_code == 403
# Try to get cards