@pytest.fixture
def percentage(qtbot):
 widget = Percentage()
 qtbot.add_widget(widget)
 return widget

@ pytest . fixture def percentage ( qtbot ) : widget = Percentage ( ) qtbot . add_widget ( widget ) return widget
fixture providing a percentage widget .