Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tests/testapp/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@
from optimizely import logger, optimizely
from optimizely.helpers import enums

# Create the flask app
app = Flask(__name__)
# Initialize CSRF protection

# Set up CSRF protection
app.config["SECRET_KEY"] = environ.get("CSRF_SECRET_KEY", "default_csrf_secret_key")
csrf = CSRFProtect(app)

# Read in the datafile
datafile = open('datafile.json', 'r')
datafile_content = datafile.read()
datafile.close()
Expand Down