Skip to content

ci: Fix Django2x frontend integration tests #206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 6, 2022
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions .circleci/setupAndTestWithFrontendWithDjango2x.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ cd supertokens-website
git checkout $2
cd ../project/tests/frontendIntegration/django2x
export PYTHONPATH="${PYTHONPATH}:/root/project"
python3 manage.py runserver 8080 &
gunicorn mysite.wsgi --bind 0.0.0.0:8080 &
pid=$!
python3 manage.py runserver 8082 &
gunicorn mysite.wsgi --bind 0.0.0.0:8082 &
pid2=$!
cd ../../../../supertokens-website/test/server
npm i -d
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@
),
"django2x": (
[
"django-cors-headers==2.0",
"django-cors-headers==3.11.0",
"django>=2,<3",
"django-stubs==1.9.0",
"gunicorn==20.1.0",
"python-dotenv==0.19.2",
]
),
Expand Down
1 change: 1 addition & 0 deletions tests/frontendIntegration/django2x/mysite/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
# Application definition

INSTALLED_APPS = [
"corsheaders", # Add corsheaders django app
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
Expand Down
2 changes: 1 addition & 1 deletion tests/frontendIntegration/django2x/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
django==2.2
django-cors-headers==2.0
django-cors-headers==3.11
2 changes: 1 addition & 1 deletion tests/frontendIntegration/django3x/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Django==3.2.12
django-cors-headers==3.10
django-cors-headers==3.11