diff --git a/cms/pytest.ini b/cms/pytest.ini index 7f6e49c83e5b..5207419d1024 100644 --- a/cms/pytest.ini +++ b/cms/pytest.ini @@ -12,6 +12,8 @@ filterwarnings = default ignore:No request passed to the backend, unable to rate-limit:UserWarning ignore::xblock.exceptions.FieldDataDeprecationWarning + ignore:.*You can remove default_app_config.*:PendingDeprecationWarning + ignore:.*You can remove default_app_config.*:DeprecationWarning norecursedirs = envs python_classes = python_files = test.py tests.py test_*.py *_tests.py diff --git a/common/test/pytest.ini b/common/test/pytest.ini index ffbe9c134ef3..444654e9cf97 100644 --- a/common/test/pytest.ini +++ b/common/test/pytest.ini @@ -11,4 +11,6 @@ filterwarnings = default ignore:No request passed to the backend, unable to rate-limit:UserWarning ignore::xblock.exceptions.FieldDataDeprecationWarning + ignore:.*You can remove default_app_config.*:PendingDeprecationWarning + ignore:.*You can remove default_app_config.*:DeprecationWarning norecursedirs = .cache diff --git a/openedx/core/lib/logsettings.py b/openedx/core/lib/logsettings.py index 8a35865b0909..85836f3dd88e 100644 --- a/openedx/core/lib/logsettings.py +++ b/openedx/core/lib/logsettings.py @@ -126,6 +126,7 @@ def log_python_warnings(): warnings.filterwarnings('ignore', 'Setting _field_data is deprecated') warnings.filterwarnings('ignore', 'Setting _field_data via the constructor is deprecated') warnings.filterwarnings('ignore', '.*unclosed.*', category=ResourceWarning) + warnings.filterwarnings('ignore', '.*You can remove default_app_config.*') # try: # # There are far too many of these deprecation warnings in startup to output for every management command; # # suppress them until we've fixed at least the most common ones as reported by the test suite diff --git a/setup.cfg b/setup.cfg index fe889355a753..25db2623c8b8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -12,6 +12,9 @@ filterwarnings = default ignore:No request passed to the backend, unable to rate-limit:UserWarning ignore::xblock.exceptions.FieldDataDeprecationWarning + ignore:.*You can remove default_app_config.*:PendingDeprecationWarning + ignore:.*You can remove default_app_config.*:DeprecationWarning + junit_family = xunit2 norecursedirs = .* *.egg build conf dist node_modules test_root cms/envs lms/envs python_classes =