This commit is contained in:
@@ -7,7 +7,6 @@ enabled, unlike the default app fixture which disables it.
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
ADMIN_POST_ROUTES = [
|
||||
'/admin/backup/create',
|
||||
'/admin/toggle-tryouts',
|
||||
@@ -24,7 +23,6 @@ class TestAdminCsrfProtection:
|
||||
# as_role uses the default app fixture, so we log in manually
|
||||
# with the csrf-enabled app.
|
||||
from app.extensions import db as _db
|
||||
from app.models import User
|
||||
|
||||
client = app_with_csrf.test_client()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user