We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 138c3c0 commit 3d2baa4Copy full SHA for 3d2baa4
tests/test_backends.py
@@ -60,15 +60,15 @@ class SimpleViewSet(views.FilterFieldsUserViewSet):
60
</form>
61
""")
62
63
- def test_request_obj_is_passed(self):
+ def test_request_obj_is_passed(test):
64
"""
65
Ensure that the request object is passed from the backend to the filterset.
66
See: https://github.com/philipn/django-rest-framework-filters/issues/149
67
68
class RequestCheck(FilterSet):
69
def __init__(self, *args, **kwargs):
70
super(RequestCheck, self).__init__(*args, **kwargs)
71
- assert self.request is not None
+ test.assertIsNotNone(self.request)
72
73
class Meta:
74
model = models.User
0 commit comments