mirror of
https://github.com/jazzband/django-axes.git
synced 2026-04-13 03:30:59 +00:00
Fixes #634 The Django import system seems to produce errors in certain configurations and especially when MIGRATION_MODULES configuration is set globally. This is most probably caused by misbehaving or cyclic Python module imports in the Django application instrumentatation chain that come up when the MIGRATION_MODULES configuration is altered. This patch migrates to the standard Python logging system use and has less overhead and complexity for users as well. Having a configurable logging prefix does not produce a lot of benefits and is less flexible than having all individual module logging configurations accessible through the module __name__ parameter in Axes. For example axes.handlers.* or axes.backends.* are separately configurable in the new scheme whereas they would have been both bundled under the AXES_LOGGER log configuration.
5 lines
228 B
INI
5 lines
228 B
INI
[pytest]
|
|
testpaths = axes/tests
|
|
python_files = tests.py test_*.py tests_*.py *_tests.py *_test.py
|
|
addopts = --cov axes --cov-config .coveragerc --cov-append --cov-report term-missing
|
|
DJANGO_SETTINGS_MODULE = axes.tests.settings
|