diff options
author | Miguel Jacq <mig@mig5.net> | 2018-10-18 17:42:57 +1100 |
---|---|---|
committer | Miguel Jacq <mig@mig5.net> | 2018-10-18 17:42:57 +1100 |
commit | ecea986f14e19450d8d3c7d720c087c11220e831 (patch) | |
tree | cf1b2098f4a84eaca4fc86b7a64f272151270d6a | |
parent | ecd837fc3cc04d9a848465c1b0ea791679f9f3d8 (diff) | |
download | onionshare-ecea986f14e19450d8d3c7d720c087c11220e831.tar.gz onionshare-ecea986f14e19450d8d3c7d720c087c11220e831.zip |
Revert "Travis and CircleCI hate this simple test"
This reverts commit a68a0dbabfe9a108014bed0e3fe6ae05c22b637a.
-rw-r--r-- | tests/local_onionshare_open_settings_dialog_test.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/local_onionshare_open_settings_dialog_test.py b/tests/local_onionshare_open_settings_dialog_test.py new file mode 100644 index 00000000..61e66be2 --- /dev/null +++ b/tests/local_onionshare_open_settings_dialog_test.py @@ -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() |