Skip to content

Instantly share code, notes, and snippets.

@guilhermecarvalhocarneiro
Created September 2, 2021 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guilhermecarvalhocarneiro/402acaedee158b63ccd9aceffd866184 to your computer and use it in GitHub Desktop.
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
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