diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-09-24 21:25:05 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-09-24 21:28:43 +0200 |
commit | af91f79823183f95c8de5011cc62168812ff3547 (patch) | |
tree | 80344fe5fdada94bccaf1eb584dd0f59c948c1cf /dev-python/django-filter/files | |
parent | dev-python/filetype: Bump to 1.0.8 (diff) | |
download | gentoo-af91f79823183f95c8de5011cc62168812ff3547.tar.gz gentoo-af91f79823183f95c8de5011cc62168812ff3547.tar.bz2 gentoo-af91f79823183f95c8de5011cc62168812ff3547.zip |
dev-python/django-filter: Bump to 21.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/django-filter/files')
-rw-r--r-- | dev-python/django-filter/files/django-filter-21.1-test-skipIf.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-python/django-filter/files/django-filter-21.1-test-skipIf.patch b/dev-python/django-filter/files/django-filter-21.1-test-skipIf.patch new file mode 100644 index 000000000000..adaf8ba428d1 --- /dev/null +++ b/dev-python/django-filter/files/django-filter-21.1-test-skipIf.patch @@ -0,0 +1,27 @@ +From db97686a9950cc1a372d27dfbb90b19ceece3f65 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Fri, 24 Sep 2021 21:22:41 +0200 +Subject: [PATCH] Fix inverted skipIf for CrispyFormsCompatTests tests + +The test is being wrongly skipped when crispy_forms are installed +rather than the other way around. +--- + tests/rest_framework/test_filterset.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/rest_framework/test_filterset.py b/tests/rest_framework/test_filterset.py +index f8b5aae..b6a658d 100644 +--- a/tests/rest_framework/test_filterset.py ++++ b/tests/rest_framework/test_filterset.py +@@ -38,7 +38,7 @@ class FilterSetFilterForFieldTests(TestCase): + self.assertEqual(result.extra['widget'], BooleanWidget) + + +-@skipIf(is_crispy(), 'django_crispy_forms must be installed') ++@skipIf(not is_crispy(), 'django_crispy_forms must be installed') + @override_settings(INSTALLED_APPS=settings.INSTALLED_APPS + ('crispy_forms', )) + class CrispyFormsCompatTests(TestCase): + +-- +2.33.0 + |