mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 04:50:12 +03:00
Update deprecation test
This commit is contained in:
parent
6d3114ef5c
commit
97e14d03f7
|
@ -181,7 +181,7 @@ class IntegrationTestFiltering(CommonFilteringTestCase):
|
||||||
assert response.data == self.data
|
assert response.data == self.data
|
||||||
|
|
||||||
self.assertTrue(issubclass(w[-1].category, DeprecationWarning))
|
self.assertTrue(issubclass(w[-1].category, DeprecationWarning))
|
||||||
self.assertIn("'rest_framework.filters.DjangoFilterBackend' is pending deprecation.", str(w[-1].message))
|
self.assertIn("'rest_framework.filters.DjangoFilterBackend' is deprecated.", str(w[-1].message))
|
||||||
|
|
||||||
@unittest.skipUnless(django_filters, 'django-filter not installed')
|
@unittest.skipUnless(django_filters, 'django-filter not installed')
|
||||||
def test_no_df_deprecation(self):
|
def test_no_df_deprecation(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user