refactor(tests): positioner box test changed to use create_widget fixture

This commit is contained in:
2024-09-03 13:39:30 +02:00
parent 18d8561c96
commit df5eff3147
2 changed files with 2 additions and 4 deletions
-2
View File
@@ -48,7 +48,6 @@ def create_widget(qtbot, widget, *args, **kwargs):
"""
Create a widget and add it to the qtbot for testing. This is a helper function that
should be used in all tests that require a widget to be created.
DO NOT CREATE WIDGETS DIRECTLY IN A FIXTURE!
Args:
qtbot (fixture): pytest-qt fixture
@@ -58,7 +57,6 @@ def create_widget(qtbot, widget, *args, **kwargs):
Returns:
QWidget: the created widget
"""
widget = widget(*args, **kwargs)
qtbot.addWidget(widget)