mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-27 23:07:14 -05:00
Make singleShot wait times 0 ms to speed up the tests
This commit is contained in:
parent
6ae9c7b19e
commit
c185b001fc
@ -75,7 +75,7 @@ class TestTabs(GuiBaseTest):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Prepare to reject the dialog
|
# Prepare to reject the dialog
|
||||||
QtCore.QTimer.singleShot(200, tab.close_dialog.reject_button.click)
|
QtCore.QTimer.singleShot(0, tab.close_dialog.reject_button.click)
|
||||||
|
|
||||||
# Close tab
|
# Close tab
|
||||||
self.gui.tabs.tabBar().tabButton(0, QtWidgets.QTabBar.RightSide).click()
|
self.gui.tabs.tabBar().tabButton(0, QtWidgets.QTabBar.RightSide).click()
|
||||||
@ -85,7 +85,7 @@ class TestTabs(GuiBaseTest):
|
|||||||
self.assertTrue(tab.get_mode().isVisible())
|
self.assertTrue(tab.get_mode().isVisible())
|
||||||
|
|
||||||
# Prepare to accept the dialog
|
# Prepare to accept the dialog
|
||||||
QtCore.QTimer.singleShot(200, tab.close_dialog.accept_button.click)
|
QtCore.QTimer.singleShot(0, tab.close_dialog.accept_button.click)
|
||||||
|
|
||||||
# Close tab
|
# Close tab
|
||||||
self.gui.tabs.tabBar().tabButton(0, QtWidgets.QTabBar.RightSide).click()
|
self.gui.tabs.tabBar().tabButton(0, QtWidgets.QTabBar.RightSide).click()
|
||||||
@ -105,7 +105,7 @@ class TestTabs(GuiBaseTest):
|
|||||||
self.assertTrue(os.path.exists(tab.settings.filename))
|
self.assertTrue(os.path.exists(tab.settings.filename))
|
||||||
|
|
||||||
# Prepare to reject the dialog
|
# Prepare to reject the dialog
|
||||||
QtCore.QTimer.singleShot(200, tab.close_dialog.reject_button.click)
|
QtCore.QTimer.singleShot(0, tab.close_dialog.reject_button.click)
|
||||||
|
|
||||||
# Close tab
|
# Close tab
|
||||||
self.gui.tabs.tabBar().tabButton(0, QtWidgets.QTabBar.RightSide).click()
|
self.gui.tabs.tabBar().tabButton(0, QtWidgets.QTabBar.RightSide).click()
|
||||||
@ -118,7 +118,7 @@ class TestTabs(GuiBaseTest):
|
|||||||
self.assertTrue(os.path.exists(tab.settings.filename))
|
self.assertTrue(os.path.exists(tab.settings.filename))
|
||||||
|
|
||||||
# Prepare to accept the dialog
|
# Prepare to accept the dialog
|
||||||
QtCore.QTimer.singleShot(200, tab.close_dialog.accept_button.click)
|
QtCore.QTimer.singleShot(0, tab.close_dialog.accept_button.click)
|
||||||
|
|
||||||
# Close tab
|
# Close tab
|
||||||
self.gui.tabs.tabBar().tabButton(0, QtWidgets.QTabBar.RightSide).click()
|
self.gui.tabs.tabBar().tabButton(0, QtWidgets.QTabBar.RightSide).click()
|
||||||
@ -263,7 +263,7 @@ class TestTabs(GuiBaseTest):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Prepare to reject the dialog
|
# Prepare to reject the dialog
|
||||||
QtCore.QTimer.singleShot(200, self.gui.close_dialog.reject_button.click)
|
QtCore.QTimer.singleShot(0, self.gui.close_dialog.reject_button.click)
|
||||||
|
|
||||||
# Close the window
|
# Close the window
|
||||||
self.gui.close()
|
self.gui.close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user