0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 11:41:49 +02:00

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

This commit is contained in:
2024-09-03 13:33:14 +02:00
parent 18d8561c96
commit df5eff3147
2 changed files with 2 additions and 4 deletions

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)