mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 03:23:59 +03:00
Add missing skipUnless(django_filters)
This commit is contained in:
parent
e988d57853
commit
4cb164b66c
|
@ -467,6 +467,7 @@ class DjangoFilterOrderingTests(TestCase):
|
||||||
for d in data:
|
for d in data:
|
||||||
DjangoFilterOrderingModel.objects.create(**d)
|
DjangoFilterOrderingModel.objects.create(**d)
|
||||||
|
|
||||||
|
@unittest.skipUnless(django_filters, 'django-filter not installed')
|
||||||
def test_default_ordering(self):
|
def test_default_ordering(self):
|
||||||
class DjangoFilterOrderingView(generics.ListAPIView):
|
class DjangoFilterOrderingView(generics.ListAPIView):
|
||||||
serializer_class = DjangoFilterOrderingSerializer
|
serializer_class = DjangoFilterOrderingSerializer
|
||||||
|
|
Loading…
Reference in New Issue
Block a user