Skip to content

Commit f5c6172

Browse files
committed
added 'stop' as alias for 'stopForInteraction'
fixes #10
1 parent d96263b commit f5c6172

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pytestqt/plugin.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ def stopForInteraction(self):
154154
tests.
155155
156156
Closing the windows should resume the test run, with ``qtbot`` attempting to restore visibility
157-
of the widgets as they were before this call.
157+
of the widgets as they were before this call.
158+
159+
.. note:: as a convenience, `stop` and `stopForInteraction` are aliases.
158160
'''
159161
widget_visibility = [widget.isVisible() for widget in self._widgets]
160162

@@ -165,6 +167,9 @@ def stopForInteraction(self):
165167
widget.setVisible(visible)
166168

167169

170+
stop = stopForInteraction
171+
172+
168173
#===================================================================================================
169174
# pytest_configure
170175
#===================================================================================================

0 commit comments

Comments
 (0)