big-fall-51153
05/11/2021, 9:46 PMtest.py
settings module, which does a wildcard import on a shared.py
setting file and then does a few overrides. This is working for me and it is a much simpler version of what django does internally:
from django.conf import settings
from my.app.settings import test as test_settings
def pytest_configure():
""" Configure django settings """
settings.configure(**{key: getattr(test_settings, key) for key in dir(test_settings) if key.isupper()})
happy-kitchen-89482
05/11/2021, 9:47 PM