Skip to content

Commit 160733d

Browse files
committed
fix: enable all tests
1 parent 1899fca commit 160733d

File tree

4 files changed

+132
-130
lines changed

4 files changed

+132
-130
lines changed

.circleci/config_continue.yml

+106-106
Original file line numberDiff line numberDiff line change
@@ -318,105 +318,105 @@ workflows:
318318
parameters:
319319
cdi-version: placeholder
320320
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
321-
# - test-backend-sdk-testing:
322-
# requires:
323-
# - test-dev-tag-as-not-passed
324-
# context:
325-
# - slack-notification
326-
# filters:
327-
# tags:
328-
# only: /dev-v[0-9]+(\.[0-9]+)*/
329-
# branches:
330-
# only: /test-cicd\/.*/
331-
# matrix:
332-
# parameters:
333-
# cdi-version: placeholder
334-
# fdi-version: placeholder
335-
# python-version: ['3.8', '3.13']
336-
# - test-website-fastapi:
337-
# requires:
338-
# - test-dev-tag-as-not-passed
339-
# context:
340-
# - slack-notification
341-
# matrix:
342-
# parameters:
343-
# fdi-version: placeholder
344-
# python-version: ['3.8', '3.13']
345-
# filters:
346-
# tags:
347-
# only: /dev-v[0-9]+(\.[0-9]+)*/
348-
# branches:
349-
# only: /test-cicd\/.*/
350-
# - test-website-flask:
351-
# requires:
352-
# - test-dev-tag-as-not-passed
353-
# context:
354-
# - slack-notification
355-
# matrix:
356-
# parameters:
357-
# fdi-version: placeholder
358-
# python-version: ['3.8', '3.13']
359-
# filters:
360-
# tags:
361-
# only: /dev-v[0-9]+(\.[0-9]+)*/
362-
# branches:
363-
# only: /test-cicd\/.*/
364-
# - test-website-django:
365-
# requires:
366-
# - test-dev-tag-as-not-passed
367-
# context:
368-
# - slack-notification
369-
# matrix:
370-
# parameters:
371-
# fdi-version: placeholder
372-
# python-version: ['3.8', '3.13']
373-
# filters:
374-
# tags:
375-
# only: /dev-v[0-9]+(\.[0-9]+)*/
376-
# branches:
377-
# only: /test-cicd\/.*/
378-
# - test-website-drf-async:
379-
# requires:
380-
# - test-dev-tag-as-not-passed
381-
# context:
382-
# - slack-notification
383-
# matrix:
384-
# parameters:
385-
# fdi-version: placeholder
386-
# python-version: ['3.8', '3.13']
387-
# filters:
388-
# tags:
389-
# only: /dev-v[0-9]+(\.[0-9]+)*/
390-
# branches:
391-
# only: /test-cicd\/.*/
392-
# - test-website-drf-sync:
393-
# requires:
394-
# - test-dev-tag-as-not-passed
395-
# context:
396-
# - slack-notification
397-
# matrix:
398-
# parameters:
399-
# fdi-version: placeholder
400-
# python-version: ['3.8', '3.13']
401-
# filters:
402-
# tags:
403-
# only: /dev-v[0-9]+(\.[0-9]+)*/
404-
# branches:
405-
# only: /test-cicd\/.*/
406-
# - test-website-django2x:
407-
# requires:
408-
# - test-dev-tag-as-not-passed
409-
# context:
410-
# - slack-notification
411-
# matrix:
412-
# parameters:
413-
# fdi-version: placeholder
414-
# python-version: ['3.8', '3.13']
415-
# filters:
416-
# tags:
417-
# only: /dev-v[0-9]+(\.[0-9]+)*/
418-
# branches:
419-
# only: /test-cicd\/.*/
321+
- test-backend-sdk-testing:
322+
requires:
323+
- test-dev-tag-as-not-passed
324+
context:
325+
- slack-notification
326+
filters:
327+
tags:
328+
only: /dev-v[0-9]+(\.[0-9]+)*/
329+
branches:
330+
only: /test-cicd\/.*/
331+
matrix:
332+
parameters:
333+
cdi-version: placeholder
334+
fdi-version: placeholder
335+
python-version: ['3.8', '3.13']
336+
- test-website-fastapi:
337+
requires:
338+
- test-dev-tag-as-not-passed
339+
context:
340+
- slack-notification
341+
matrix:
342+
parameters:
343+
fdi-version: placeholder
344+
python-version: ['3.8', '3.13']
345+
filters:
346+
tags:
347+
only: /dev-v[0-9]+(\.[0-9]+)*/
348+
branches:
349+
only: /test-cicd\/.*/
350+
- test-website-flask:
351+
requires:
352+
- test-dev-tag-as-not-passed
353+
context:
354+
- slack-notification
355+
matrix:
356+
parameters:
357+
fdi-version: placeholder
358+
python-version: ['3.8', '3.13']
359+
filters:
360+
tags:
361+
only: /dev-v[0-9]+(\.[0-9]+)*/
362+
branches:
363+
only: /test-cicd\/.*/
364+
- test-website-django:
365+
requires:
366+
- test-dev-tag-as-not-passed
367+
context:
368+
- slack-notification
369+
matrix:
370+
parameters:
371+
fdi-version: placeholder
372+
python-version: ['3.8', '3.13']
373+
filters:
374+
tags:
375+
only: /dev-v[0-9]+(\.[0-9]+)*/
376+
branches:
377+
only: /test-cicd\/.*/
378+
- test-website-drf-async:
379+
requires:
380+
- test-dev-tag-as-not-passed
381+
context:
382+
- slack-notification
383+
matrix:
384+
parameters:
385+
fdi-version: placeholder
386+
python-version: ['3.8', '3.13']
387+
filters:
388+
tags:
389+
only: /dev-v[0-9]+(\.[0-9]+)*/
390+
branches:
391+
only: /test-cicd\/.*/
392+
- test-website-drf-sync:
393+
requires:
394+
- test-dev-tag-as-not-passed
395+
context:
396+
- slack-notification
397+
matrix:
398+
parameters:
399+
fdi-version: placeholder
400+
python-version: ['3.8', '3.13']
401+
filters:
402+
tags:
403+
only: /dev-v[0-9]+(\.[0-9]+)*/
404+
branches:
405+
only: /test-cicd\/.*/
406+
- test-website-django2x:
407+
requires:
408+
- test-dev-tag-as-not-passed
409+
context:
410+
- slack-notification
411+
matrix:
412+
parameters:
413+
fdi-version: placeholder
414+
python-version: ['3.8', '3.13']
415+
filters:
416+
tags:
417+
only: /dev-v[0-9]+(\.[0-9]+)*/
418+
branches:
419+
only: /test-cicd\/.*/
420420
- test-authreact-fastapi:
421421
requires:
422422
- test-dev-tag-as-not-passed
@@ -462,13 +462,13 @@ workflows:
462462
- test-success:
463463
requires:
464464
- test-unit
465-
# - test-backend-sdk-testing
466-
# - test-website-fastapi
467-
# - test-website-flask
468-
# - test-website-django
469-
# - test-website-drf-async
470-
# - test-website-drf-sync
471-
# - test-website-django2x
465+
- test-backend-sdk-testing
466+
- test-website-fastapi
467+
- test-website-flask
468+
- test-website-django
469+
- test-website-drf-async
470+
- test-website-drf-sync
471+
- test-website-django2x
472472
- test-authreact-fastapi
473473
- test-authreact-flask
474474
- test-authreact-django

tests/auth-react/django3x/mysite/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"django.contrib.auth.middleware.AuthenticationMiddleware",
7474
"django.contrib.messages.middleware.MessageMiddleware",
7575
"supertokens_python.framework.django.django_middleware.middleware",
76-
"mysite.middleware.response_logging_middleware",
76+
# "mysite.middleware.response_logging_middleware", # Uncomment this for response logging
7777
]
7878

7979
ROOT_URLCONF = "mysite.urls"

tests/auth-react/fastapi-server/app.py

+20-19
Original file line numberDiff line numberDiff line change
@@ -174,25 +174,26 @@
174174
os.environ.setdefault("SUPERTOKENS_ENV", "testing")
175175

176176

177-
@app.middleware("http")
178-
async def log_response(request: Request, call_next): # type: ignore
179-
response = await call_next(request) # type: ignore
180-
181-
try:
182-
body_bytes = b""
183-
async for chunk in response.body_iterator: # type: ignore
184-
body_bytes += chunk # type: ignore
185-
print(f"Response: {body_bytes.decode('utf-8')}") # type: ignore
186-
response_with_body = Response(
187-
content=body_bytes,
188-
status_code=response.status_code, # type: ignore
189-
headers=response.headers, # type: ignore
190-
media_type=response.media_type, # type: ignore
191-
)
192-
return response_with_body
193-
except:
194-
pass
195-
return response # type: ignore
177+
# Uncomment the following for response logging
178+
# @app.middleware("http")
179+
# async def log_response(request: Request, call_next): # type: ignore
180+
# response = await call_next(request) # type: ignore
181+
182+
# try:
183+
# body_bytes = b""
184+
# async for chunk in response.body_iterator: # type: ignore
185+
# body_bytes += chunk # type: ignore
186+
# print(f"Response: {body_bytes.decode('utf-8')}") # type: ignore
187+
# response_with_body = Response(
188+
# content=body_bytes,
189+
# status_code=response.status_code, # type: ignore
190+
# headers=response.headers, # type: ignore
191+
# media_type=response.media_type, # type: ignore
192+
# )
193+
# return response_with_body
194+
# except:
195+
# pass
196+
# return response # type: ignore
196197

197198

198199
code_store: Dict[str, List[Dict[str, Any]]] = {}

tests/auth-react/flask-server/app.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -1095,10 +1095,11 @@ def make_default_options_response():
10951095
)
10961096

10971097

1098-
@app.after_request
1099-
def after_request(response): # type: ignore
1100-
print(f"Response: {response.get_data(as_text=True)}") # type: ignore
1101-
return response # type: ignore
1098+
# Uncomment the following for response logging
1099+
# @app.after_request
1100+
# def after_request(response): # type: ignore
1101+
# print(f"Response: {response.get_data(as_text=True)}") # type: ignore
1102+
# return response # type: ignore
11021103

11031104

11041105
@app.route("/ping", methods=["GET"]) # type: ignore

0 commit comments

Comments
 (0)