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:
@ -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)
|
||||
|
Reference in New Issue
Block a user