Created
September 2, 2021 19:57
-
-
Save guilhermecarvalhocarneiro/402acaedee158b63ccd9aceffd866184 to your computer and use it in GitHub Desktop.
Arquivo de configuração que determina que deve ser utilizado o contexto de testing do arquivo de configuração dynaconf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytest | |
@pytest.fixture(scope="session", autouse=True) | |
def set_test_settings(): | |
from django.conf import settings | |
settings.setenv('testing') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment