PLAT-1916 Ignore existing usage of deprecated field_data
This commit is contained in:
@@ -132,7 +132,6 @@ from lms.envs.common import (
|
||||
_make_locale_paths,
|
||||
)
|
||||
from path import Path as path
|
||||
from warnings import simplefilter
|
||||
|
||||
from lms.djangoapps.lms_xblock.mixin import LmsBlockMixin
|
||||
from cms.lib.xblock.authoring_mixin import AuthoringMixin
|
||||
@@ -441,11 +440,6 @@ XQUEUE_INTERFACE = {
|
||||
'basic_auth': None,
|
||||
}
|
||||
|
||||
################################# Deprecation warnings #####################
|
||||
|
||||
# Ignore deprecation warnings (so we don't clutter Jenkins builds/production)
|
||||
simplefilter('ignore')
|
||||
|
||||
################################# Middleware ###################################
|
||||
|
||||
# TODO: Remove Django 1.11 upgrade shim
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
DJANGO_SETTINGS_MODULE = cms.envs.test
|
||||
addopts = --nomigrations --reuse-db --durations=20 -p no:randomly
|
||||
# Enable default handling for all warnings, including those that are ignored by default;
|
||||
# but hide rate-limit warnings, because we deliberately don't throttle test user logins
|
||||
# but hide rate-limit warnings (because we deliberately don't throttle test user logins)
|
||||
# and field_data deprecation warnings (because fixing them requires a major low-priority refactoring)
|
||||
filterwarnings =
|
||||
default
|
||||
ignore:No request passed to the backend, unable to rate-limit:UserWarning
|
||||
ignore::xblock.exceptions.FieldDataDeprecationWarning
|
||||
norecursedirs = envs
|
||||
python_classes =
|
||||
python_files = tests.py test_*.py *_tests.py
|
||||
|
||||
Reference in New Issue
Block a user