mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-28 00:39:37 -05:00
Revert "Travis and CircleCI hate this simple test"
This reverts commit a68a0dbabf
.
This commit is contained in:
parent
ecd837fc3c
commit
ecea986f14
26
tests/local_onionshare_open_settings_dialog_test.py
Normal file
26
tests/local_onionshare_open_settings_dialog_test.py
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
import unittest
|
||||||
|
from PyQt5 import QtCore, QtTest
|
||||||
|
|
||||||
|
from .GuiShareTest import GuiShareTest
|
||||||
|
|
||||||
|
class LocalOpenSettingsDialogTest(unittest.TestCase, GuiShareTest):
|
||||||
|
@classmethod
|
||||||
|
def setUpClass(cls):
|
||||||
|
test_settings = {
|
||||||
|
}
|
||||||
|
cls.gui = GuiShareTest.set_up(test_settings)
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def tearDownClass(cls):
|
||||||
|
GuiShareTest.tear_down()
|
||||||
|
|
||||||
|
def test_gui(self):
|
||||||
|
self.run_all_common_setup_tests()
|
||||||
|
self.run_all_share_mode_setup_tests()
|
||||||
|
# Make sure we can open the settings dialog via the settings button
|
||||||
|
QtCore.QTimer.singleShot(1000, self.accept_dialog)
|
||||||
|
QtTest.QTest.mouseClick(self.gui.settings_button, QtCore.Qt.LeftButton)
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
unittest.main()
|
Loading…
Reference in New Issue
Block a user