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
When testing with the command docker-compose -f local.yml run --rm django pytest, my program asserted that DEBUG was False. From config.settings.base, it makes sense why.
However, if you add DEBUG=True above and below the import in config.settings.test, the DEBUG is still False.
What should've happened instead?
settings.DEBUG should've been False.
Steps to reproduce
Create a view or something that raises an error if debug is False. In config.settings.test, add DEBUG=True above and below the import statement, but the bottom is most important. Finally, check DEBUG with a test.
The text was updated successfully, but these errors were encountered:
What happened?
When testing with the command
docker-compose -f local.yml run --rm django pytest
, my program asserted that DEBUG was False. From config.settings.base, it makes sense why.However, if you add DEBUG=True above and below the import in config.settings.test, the DEBUG is still False.
What should've happened instead?
settings.DEBUG should've been False.
Steps to reproduce
Create a view or something that raises an error if debug is False. In config.settings.test, add DEBUG=True above and below the import statement, but the bottom is most important. Finally, check DEBUG with a test.
The text was updated successfully, but these errors were encountered: