File no-bs3.patch of Package python-crispy-bootstrap4

From eb8e43359b6a9ad2ccadc68e29e54a439e5d321d Mon Sep 17 00:00:00 2001
From: David Smith <39445562+smithdc1@users.noreply.github.com>
Date: Thu, 13 Apr 2023 19:17:22 +0100
Subject: [PATCH] Removed test depedant upon bootstrap3 template pack (#10)

* Removed test depedant upon bootstrap3 template pack

The template packs should be standalone. Testing switching template packs should be a feature of core crispy-forms not individual template packs.

* Updated to black 2023 style
---
 tests/test_form_helper.py    | 8 --------
 tests/test_layout_objects.py | 1 -
 2 files changed, 9 deletions(-)

diff --git a/tests/test_form_helper.py b/tests/test_form_helper.py
index e664397..4145ad0 100644
--- a/tests/test_form_helper.py
+++ b/tests/test_form_helper.py
@@ -633,14 +633,6 @@ def test_form_group_with_form_inline_bs4():
     assert '<div class="form-group row">' not in html
 
 
-def test_template_pack_bs4():
-    form = SampleForm()
-    form.helper = FormHelper()
-    form.helper.template_pack = "bootstrap3"
-    html = render_crispy_form(form)
-    assert "controls" in html  # controls is bootstrap3 only
-
-
 def test_passthrough_context():
     """
     Test to ensure that context is passed through implicitly from outside of
diff --git a/tests/test_layout_objects.py b/tests/test_layout_objects.py
index 5fb4b9f..be3a896 100644
--- a/tests/test_layout_objects.py
+++ b/tests/test_layout_objects.py
@@ -123,7 +123,6 @@ def test_remove_labels():
 
 class TestBootstrapLayoutObjects:
     def test_custom_django_widget(self, settings):
-
         # Make sure an inherited RadioSelect gets rendered as it
         form = SampleFormCustomWidgets()
         assert isinstance(form.fields["inline_radios"].widget, CustomRadioSelect)
openSUSE Build Service is sponsored by