Add missing skipUnless(django_filters)

This commit is contained in:
Tom Christie 2015-01-23 11:49:57 +00:00
parent e988d57853
commit 4cb164b66c

View File

@ -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