mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 06:24:23 +01:00
@@ -2,11 +2,11 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from flask.testing import FlaskClient
|
||||
from tests.helpers import *
|
||||
from tests.helpers import create_ctfd, destroy_ctfd, login_as_user
|
||||
|
||||
|
||||
def test_api_csrf_failure():
|
||||
"""Can a user post /api/v1/awards if not admin"""
|
||||
"""Test that API requests require the CSRF-Token header"""
|
||||
app = create_ctfd()
|
||||
app.test_client_class = FlaskClient
|
||||
with app.app_context():
|
||||
|
||||
Reference in New Issue
Block a user