Skip to content

Commit ad98579

Browse files
Merge pull request #206 from supertokens/ci/fix-django2x-tests
ci: Fix Django2x frontend integration tests
2 parents 4af9d85 + 9444c5f commit ad98579

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

.circleci/setupAndTestWithFrontendWithDjango2x.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ cd supertokens-website
5050
git checkout $2
5151
cd ../project/tests/frontendIntegration/django2x
5252
export PYTHONPATH="${PYTHONPATH}:/root/project"
53-
python3 manage.py runserver 8080 &
53+
gunicorn mysite.wsgi --bind 0.0.0.0:8080 &
5454
pid=$!
55-
python3 manage.py runserver 8082 &
55+
gunicorn mysite.wsgi --bind 0.0.0.0:8082 &
5656
pid2=$!
5757
cd ../../../../supertokens-website/test/server
5858
npm i -d

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@
3939
),
4040
"django2x": (
4141
[
42-
"django-cors-headers==2.0",
42+
"django-cors-headers==3.11.0",
4343
"django>=2,<3",
4444
"django-stubs==1.9.0",
45+
"gunicorn==20.1.0",
4546
"python-dotenv==0.19.2",
4647
]
4748
),

tests/frontendIntegration/django2x/mysite/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
# Application definition
6262

6363
INSTALLED_APPS = [
64+
"corsheaders", # Add corsheaders django app
6465
"django.contrib.admin",
6566
"django.contrib.auth",
6667
"django.contrib.contenttypes",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
django==2.2
2-
django-cors-headers==2.0
2+
django-cors-headers==3.11
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Django==3.2.12
2-
django-cors-headers==3.10
2+
django-cors-headers==3.11

0 commit comments

Comments
 (0)