Skip to content

Commit

Permalink
Fix inverted skipIf for CrispyFormsCompatTests tests (#1444)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgorny committed Jun 18, 2022
1 parent 2c81768 commit d3eb089
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/rest_framework/test_filterset.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from django.test import TestCase
from django.test.utils import override_settings

from django_filters.compat import is_crispy
from django_filters.compat import crispy_forms
from django_filters.rest_framework import FilterSet, filters
from django_filters.widgets import BooleanWidget

Expand Down Expand Up @@ -37,7 +37,7 @@ def test_booleanfilter_widget_nullbooleanfield(self):
self.assertEqual(result.extra["widget"], BooleanWidget)


@skipIf(is_crispy(), "django_crispy_forms must be installed")
@skipIf(crispy_forms is None, "django_crispy_forms must be installed")
@override_settings(INSTALLED_APPS=settings.INSTALLED_APPS + ("crispy_forms",))
class CrispyFormsCompatTests(TestCase):
def test_crispy_helper(self):
Expand Down

0 comments on commit d3eb089

Please sign in to comment.