You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
johnbaldwin
changed the title
Pytest is missing devsite .ev file and default Open edX release
Pytest is missing devsite .env file and default Open edX release
Mar 7, 2022
Issue #1 pytest failes because
devsite/devsite/.env
does not existRunning pytest fails with the following:
Tox does work. Tox calling pytest works because tox defines environment variables that the devsite settings file expects. These enviroment var
The package used is here: https://github.com/joke2k/django-environ
It is unfortunate that the package seems to not be actively maintained. However, we use it only for Figures devsite and not in production.
Issue #2: There is not a default Open edX release defined. This can be seen if one creates an empty
devsite/devsite/.env
file.The
.env
file loads environment variables that are then read in the devsitesettings.py
andtest_settings.py
filesThere are options to fix this (here are just some):
.env
file with a default Open edX releasetest_settings.py
, use atest.env
filedjango-environ
and implement an alternate strategy for setting environment variablesTODO: dig into the options and choose
The text was updated successfully, but these errors were encountered: