mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-10 19:52:50 -03:00
26 lines
613 B
Python
26 lines
613 B
Python
#!/usr/bin/env python3
|
|
import pytest
|
|
import unittest
|
|
|
|
from onionshare import strings
|
|
from .SettingsGuiBaseTest import SettingsGuiBaseTest, OnionStub
|
|
|
|
|
|
class SettingsGuiTest(unittest.TestCase, SettingsGuiBaseTest):
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
cls.gui = SettingsGuiBaseTest.set_up()
|
|
|
|
@classmethod
|
|
def tearDownClass(cls):
|
|
SettingsGuiBaseTest.tear_down()
|
|
|
|
@pytest.mark.gui
|
|
def test_gui_no_tor(self):
|
|
self.gui.onion = OnionStub(False, False)
|
|
self.gui.reload_settings()
|
|
self.run_settings_gui_tests()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|