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

Fix all deprecated stuff #2805

Merged
merged 5 commits into from
Aug 1, 2022
Merged

Fix all deprecated stuff #2805

merged 5 commits into from
Aug 1, 2022

Conversation

ivarnakken
Copy link
Member

There was a bunch of super annoying deprecated stuff laying around, which would all raise a myriad of warnings when running tests. This fixes all of them:

From this

To this 😍

The one small error left will be fixed in #2801

image

assertEquals() has been deprecated for a long time, and raised DeprecationsWarnings. Also changed one assertNotEquals(). See https://docs.python.org/2/library/unittest.html#deprecated-aliases
The ViewSets were not compatible with schema generation. django-filter raised UserWarnings. See carltongibson/django-filter#966
'report' field is a `ContentField`, and is thus sanitized and then parsed through BeautifulSoup. BeautifulSoup would then raise warnings.
`@coroutine` decorator has been deprecated since Python 3.8.
@ivarnakken ivarnakken added testing-needed Pull requests that need testing, e.g. stress tests by users or specs enhancement Pull requests that make or issues that suggest enhancements, instead of just purely new features review-needed Pull requests that need review labels Jul 28, 2022
Copy link
Member

@LudvigHz LudvigHz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome 😍

These warnings are the most annoying (which is a good thing I guess). Super nice to get them fixed.

@ivarnakken ivarnakken added approved Pull requests that have been approved ready-to-merge Pull requests that have been approved and are ready to be merged and removed review-needed Pull requests that need review testing-needed Pull requests that need testing, e.g. stress tests by users or specs labels Jul 30, 2022
@ivarnakken ivarnakken merged commit 046a604 into master Aug 1, 2022
@ivarnakken ivarnakken deleted the deprecated-stuff-fixes branch August 1, 2022 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Pull requests that have been approved enhancement Pull requests that make or issues that suggest enhancements, instead of just purely new features ready-to-merge Pull requests that have been approved and are ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants