Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aquamatthias committed Oct 1, 2024
1 parent a403607 commit 141ff56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/fixbackend/auth/users_router_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ async def client(
async def test_user_notification_settings(client: AsyncClient) -> None:
response = await client.get("/api/users/me/settings/notifications")
assert response.status_code == 200
assert response.json() == {"inactivity_reminder": True, "weekly_report": True, "tutorial": True}
assert response.json() == {"inactivity_reminder": True, "weekly_report": True, "tutorial": True, "marketing": True}

response = await client.put("/api/users/me/settings/notifications", json={"weekly_report": False})
assert response.status_code == 200
assert response.json() == {"inactivity_reminder": True, "weekly_report": False, "tutorial": True}
assert response.json() == {"inactivity_reminder": True, "weekly_report": False, "tutorial": True, "marketing": True}

0 comments on commit 141ff56

Please sign in to comment.