Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: ignore default_app_config warning #33591

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cms/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions common/test/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions openedx/core/lib/logsettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down