The CSRF middleware added to main after the admin-pages branch was created caused all admin test POSTs/DELETEs to be rejected. Add get_csrf_token() calls and X-CSRF-Token headers to login helpers and all mutation requests, matching the pattern used by other tests. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_admin_guard.py | ||
| test_admin_routes.py | ||