diff options
author | Miguel Jacq <mig@mig5.net> | 2018-10-17 13:48:13 +1100 |
---|---|---|
committer | Miguel Jacq <mig@mig5.net> | 2018-10-17 13:48:13 +1100 |
commit | f7ab3050492d0995b543ac42d9eb011b69551f8b (patch) | |
tree | a44933efc69df402210141d12455895bafd37f7b /tests | |
parent | c79eedd626353cc68663fd3aa2bbab9dd753df86 (diff) | |
download | onionshare-f7ab3050492d0995b543ac42d9eb011b69551f8b.tar.gz onionshare-f7ab3050492d0995b543ac42d9eb011b69551f8b.zip |
Add simple test to ensure we can click the settings button
Diffstat (limited to 'tests')
-rw-r--r-- | tests/local_onionshare_open_settings_dialog_test.py | 27 |
1 files changed, 27 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..2a4d1a01 --- /dev/null +++ b/tests/local_onionshare_open_settings_dialog_test.py @@ -0,0 +1,27 @@ +#!/usr/bin/env python3 +import pytest +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, 'LocalOpenSettingsDialogTest') + + @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() |