File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5151 run : poetry run ruff check docia
5252 - name : Run ruff format
5353 run : poetry run ruff format --check docia
54+ - name : Run tests
55+ run : poetry run pytest --no-migrations docia
Original file line number Diff line number Diff line change 2525config .read_env (BASE_DIR / ".env" )
2626
2727
28- if "test " in sys .argv [0 ] or " test" in sys .argv [1 ]:
28+ if "pytest " in sys .argv [0 ] or ( "manage.py" in sys . argv [ 0 ] and " test" in sys .argv [1 ]) :
2929 print ("LOAD TEST ENVIRONMENT VARIABLES! (TESTING=True)" )
3030 config .read_env (BASE_DIR / "test.env" )
3131
Original file line number Diff line number Diff line change 2020
2121from lasuite .oidc_login .urls import urlpatterns as oidc_urls
2222from magicauth .urls import urlpatterns as magicauth_urls
23- from mozilla_django_oidc .urls import OIDCCallbackClass
2423
2524from . import views
2625from .auth import views as auth_views
Original file line number Diff line number Diff line change @@ -17,3 +17,13 @@ SMTP_HOST=
1717SMTP_PORT =
1818SMTP_USERNAME =
1919SMTP_PASSWORD =
20+
21+ STORAGE_BACKEND = fs
22+ STORAGE_LOCAL_PATH = /tmp/data/
23+ AWS_S3_ENDPOINT_URL = https://s3.nohost
24+ AWS_S3_REGION_NAME = eu
25+ AWS_REQUEST_CHECKSUM_CALCULATION = WHEN_REQUIRED
26+ AWS_RESPONSE_CHECKSUM_VALIDATION = WHEN_REQUIRED
27+ STORAGE_S3_BUCKET_NAME =
28+ AWS_S3_ACCESS_KEY_ID =
29+ AWS_S3_SECRET_ACCESS_KEY =
You can’t perform that action at this time.
0 commit comments