flake8
-
django_evolution/tests/test_conf.py (Diff revision 1) Show all issues -
django_evolution/tests/test_conf.py (Diff revision 1) F401 'django_evolution.conf.setting_changed' imported but unused
Review Request #12218 — Created March 30, 2022 and submitted
Information | |
---|---|
chipx86 | |
Django Evolution | |
release-2.x | |
Reviewers | |
django-evolution | |
In an effort to better namespace Django Evolution settings and keep them
manageable, this change introduces a newsettings.DJANGO_EVOLUTION
dictionary. Currently, this supportsCUSTOM_EVOLUTIONS
andENABLED
keys, but will later include aCUSTOM_MIGRATIONS
setting.The old
settings.DJANGO_EVOLUTION_ENABLED
andsettings.CUSTOM_EVOLUTIONS
are still supported, but will emit a deprecation warning.All settings are now accessed through a new
django_evolution.conf.django_evolution_settings
object, which is an
instance ofDjangoEvolutionSettings
. This manages loading settings (both
modern and legacy), defaults, and responding to Django'ssettings_changed
signal.
Unit tests pass on all versions of Django and Python.
Manually tested the values by tweaking Django settings and running management
commands.
django_evolution/tests/test_conf.py (Diff revision 1) |
---|
django_evolution/tests/test_conf.py (Diff revision 1) |
---|
F401 'django_evolution.conf.setting_changed' imported but unused
Removed unused imports.
Commits: |
|
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+818 -16) |