diff --git a/cms/pytest.ini b/cms/pytest.ini index 50ce783b3a..1bfc59dbbe 100644 --- a/cms/pytest.ini +++ b/cms/pytest.ini @@ -14,6 +14,8 @@ filterwarnings = ignore::xblock.exceptions.FieldDataDeprecationWarning # Remove default_app_config warning after updating Django to 4.2 ignore:.*You can remove default_app_config.*:PendingDeprecationWarning + ignore:Instead access HTTPResponse.headers directly.*:DeprecationWarning:elasticsearch + 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 d700a3c388..1fc5822505 100644 --- a/common/test/pytest.ini +++ b/common/test/pytest.ini @@ -13,4 +13,6 @@ filterwarnings = ignore::xblock.exceptions.FieldDataDeprecationWarning # Remove default_app_config warning after updating Django to 4.2 ignore:.*You can remove default_app_config.*:PendingDeprecationWarning + ignore:Instead access HTTPResponse.headers directly.*:DeprecationWarning:elasticsearch + norecursedirs = .cache diff --git a/openedx/core/lib/logsettings.py b/openedx/core/lib/logsettings.py index 64609673f2..67bfd9c871 100644 --- a/openedx/core/lib/logsettings.py +++ b/openedx/core/lib/logsettings.py @@ -132,6 +132,12 @@ def log_python_warnings(): '.*You can remove default_app_config.*', category=PendingDeprecationWarning ) + warnings.filterwarnings( + 'ignore', + 'Instead access HTTPResponse.headers directly.*', + category=DeprecationWarning, + module='elasticsearch' + ) # 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 bfde00f48b..6e9a4b44e2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -14,6 +14,7 @@ filterwarnings = ignore::xblock.exceptions.FieldDataDeprecationWarning # Remove default_app_config warning after updating Django to 4.2 ignore:.*You can remove default_app_config.*:PendingDeprecationWarning + ignore:Instead access HTTPResponse.headers directly.*:DeprecationWarning:elasticsearch junit_family = xunit2 norecursedirs = .* *.egg build conf dist node_modules test_root cms/envs lms/envs