Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid deprecation warnings during tests (#527)
Steps: * Change to non deprecation pagination class per default * filterwarnings per test level where a warning is actually tested * Add some global filterwarnings for warnings which happen during import time. (those can be removed when tests are being restructured) All in all when running tests it should bloat the output with unrelated warning messages anymore.
- Loading branch information
Showing
16 changed files
with
60 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,17 @@ | ||
[pytest] | ||
DJANGO_SETTINGS_MODULE=example.settings.test | ||
filterwarnings = | ||
error::DeprecationWarning | ||
error::PendingDeprecationWarning | ||
# TODO: restructure tests so this can be ignored on a test level | ||
ignore:MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly. | ||
ignore:use of getfuncargvalue is deprecated, use getfixturevalue | ||
ignore:`list_route` | ||
ignore:`detail_route` | ||
ignore:`FiltersetEntryViewSet.filter_fields` attribute should be renamed | ||
ignore:`NoFiltersetEntryViewSet.filter_fields` attribute should be renamed | ||
ignore:`NoFiltersetEntryViewSet.filter_class` attribute should be renamed `filterset_class` | ||
ignore:MultipleIDMixin is deprecated | ||
# can be removed once following DRF PR is released | ||
# https://github.com/encode/django-rest-framework/pull/6268 | ||
ignore:Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated |