Skip to content

Commit efc7842

Browse files
Copilotfsbraun
andcommitted
Fix flake8 compliance issues in tests
Co-authored-by: fsbraun <[email protected]>
1 parent f02acbc commit efc7842

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

tests/carousel/test_plugins.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
CarouselPlugin,
77
CarouselSlidePlugin,
88
)
9-
from djangocms_frontend.contrib.carousel.constants import CAROUSEL_TEMPLATE_CHOICES
109
from djangocms_frontend.contrib.carousel.forms import CarouselForm, CarouselSlideForm
1110

1211
from ..fixtures import TestFixture
@@ -148,7 +147,7 @@ def test_carousel_slide_inherits_parent_template(self):
148147
template="custom",
149148
)
150149
carousel.initialize_from_form(CarouselForm).save()
151-
150+
152151
# Create a slide as child of the carousel
153152
slide = add_plugin(
154153
target=carousel,
@@ -158,17 +157,17 @@ def test_carousel_slide_inherits_parent_template(self):
158157
config=dict(carousel_image=dict(pk=self.image.id, model="filer.Image")),
159158
)
160159
slide.initialize_from_form(CarouselSlideForm).save()
161-
160+
162161
# Get the plugin instance
163162
plugin_instance = CarouselSlidePlugin()
164-
163+
165164
# Test that get_render_template uses the parent's template
166165
template_path = plugin_instance.get_render_template(
167166
context={},
168167
instance=slide,
169168
placeholder=self.placeholder
170169
)
171-
170+
172171
# The template path should use 'custom' from the parent, not 'default'
173172
self.assertIn("custom", template_path)
174173
self.assertEqual(

tests/tabs/test_plugins.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def test_tab_item_inherits_parent_template(self):
6060
template="custom",
6161
)
6262
tab_container.initialize_from_form(TabForm).save()
63-
63+
6464
# Create a tab item as child of the tab container
6565
tab_item = add_plugin(
6666
target=tab_container,
@@ -70,17 +70,17 @@ def test_tab_item_inherits_parent_template(self):
7070
config=dict(tab_title="Test Tab"),
7171
)
7272
tab_item.initialize_from_form(TabItemForm).save()
73-
73+
7474
# Get the plugin instance
7575
plugin_instance = TabItemPlugin()
76-
76+
7777
# Test that get_render_template uses the parent's template
7878
template_path = plugin_instance.get_render_template(
7979
context={},
8080
instance=tab_item,
8181
placeholder=self.placeholder
8282
)
83-
83+
8484
# The template path should use 'custom' from the parent, not 'default'
8585
self.assertIn("custom", template_path)
8686
self.assertEqual(

0 commit comments

Comments
 (0)