Move tests.settings into the djblets package.

Review Request #12287 — Created May 18, 2022 and discarded — Latest diff uploaded

Information

Djblets
release-3.x

Reviewers

A recent change to django-evolution broke the djblets tests. We were
using DJANGO_SETTINGS_MODULE = tests.settings, but this was picking up
a tests/settings.py in django-evolution instead of the one in djblets.
It doesn't appear possible to use a relative import name here. This
change moves the test settings into the djblets module so we can be sure
to load the right one.


 

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Move tests.settings into the djblets package.
A recent change to django-evolution broke the djblets tests. We were using `DJANGO_SETTINGS_MODULE = tests.settings`, but this was picking up a `tests/settings.py` in django-evolution instead of the one in djblets. It doesn't appear possible to use a relative import name here. This change moves the test settings into the djblets module so we can be sure to load the right one.
e5ab32d0fbd706e6fd27128522f9d1a91586cbb5 David Trowbridge

Files

setup.cfg
djblets/testing/settings.py Was tests/settings.py
setup.cfg
tests/settings.py
Loading...