Skip to content

Commit

Permalink
Set setting to False in test settings
Browse files Browse the repository at this point in the history
  • Loading branch information
faucomte97 committed Jan 9, 2024
1 parent facb212 commit 2e1c641
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example_project/portal_test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
SECURE_CONTENT_TYPE_NOSNIFF = True
SECURE_BROWSER_XSS_FILTER = True
SECURE_REFERRER_POLICY = "strict-origin-when-cross-origin"
CSRF_USE_SESSIONS = True
CSRF_USE_SESSIONS = False # Setting to False to allow CSRF token to work in Cypress
RECAPTCHA_DOMAIN = "www.recaptcha.net"
AUTHENTICATION_BACKENDS = ["django.contrib.auth.backends.ModelBackend", "portal.backends.StudentLoginBackend"]
USE_TZ = True
Expand Down
2 changes: 1 addition & 1 deletion run_testserver
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ set -e
cd "${BASH_SOURCE%/*}"

./example_project/manage.py collectstatic --noinput --clear
./example_project/manage.py testserver portal/tests/cypress/fixtures/teachersToBeDeleted.json
./example_project/manage.py testserver portal/tests/cypress/fixtures/teachersToBeDeleted.json --settings="portal_test_settings"

0 comments on commit 2e1c641

Please sign in to comment.