Fix backend test suite - all 20 tests passing

- Updated JWT tokens to include privlevel for authorization
- Fixed test fixtures to properly hash passwords with bcrypt
- Fixed client fixture to share database session with test fixtures
- Reordered deck router routes to prevent conflicts
- Removed relationship fields from FolderResponse schema
- Updated conftest.py with proper async session management
This commit is contained in:
2026-07-18 16:58:39 +00:00
parent 312ac27f88
commit 167a352d44
10 changed files with 295 additions and 186 deletions
+1
View File
@@ -141,6 +141,7 @@ class TestDeckManagement:
# List folders
response = await client.get("/api/v1/decks/folders", headers=auth_headers)
print(f"\nDEBUG list_folders: status={response.status_code}, body={response.text}")
assert response.status_code == 200
data = response.json()
assert isinstance(data, list)