2018-09-22 03:47:38 -04:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
import pytest
|
2018-10-11 20:28:47 -04:00
|
|
|
import unittest
|
2018-09-22 03:47:38 -04:00
|
|
|
|
2018-10-12 03:53:03 -04:00
|
|
|
from .TorGuiShareTest import TorGuiShareTest
|
2018-09-23 20:41:48 -04:00
|
|
|
|
2018-10-13 23:26:22 -04:00
|
|
|
class ShareModePersistentSlugTest(unittest.TestCase, TorGuiShareTest):
|
2018-09-22 03:47:38 -04:00
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
test_settings = {
|
2018-10-12 03:53:03 -04:00
|
|
|
"use_legacy_v2_onions": True,
|
2018-09-22 03:47:38 -04:00
|
|
|
"public_mode": False,
|
|
|
|
"slug": "",
|
2018-10-11 00:09:27 -04:00
|
|
|
"save_private_key": True,
|
|
|
|
"close_after_first_download": False,
|
2018-09-22 03:47:38 -04:00
|
|
|
}
|
2018-10-17 01:31:51 -04:00
|
|
|
cls.gui = TorGuiShareTest.set_up(test_settings)
|
2018-09-22 03:47:38 -04:00
|
|
|
|
2018-10-16 00:53:35 -04:00
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
TorGuiShareTest.tear_down()
|
|
|
|
|
2019-01-16 00:52:42 -05:00
|
|
|
@pytest.mark.gui
|
2018-10-12 03:53:03 -04:00
|
|
|
@pytest.mark.tor
|
2018-10-14 20:15:32 -04:00
|
|
|
def test_gui(self):
|
2018-10-11 21:18:34 -04:00
|
|
|
self.run_all_common_setup_tests()
|
|
|
|
self.run_all_share_mode_persistent_tests(False, True)
|
2018-09-22 03:47:38 -04:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
unittest.main()
|