2018-09-22 03:50:39 -03:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
import pytest
|
2018-10-11 21:28:47 -03:00
|
|
|
import unittest
|
2018-09-22 03:50:39 -03:00
|
|
|
|
2018-10-12 04:53:03 -03:00
|
|
|
from .TorGuiShareTest import TorGuiShareTest
|
2018-09-23 21:41:48 -03:00
|
|
|
|
2018-10-12 04:53:03 -03:00
|
|
|
class ShareModeTest(unittest.TestCase, TorGuiShareTest):
|
2018-09-22 03:50:39 -03:00
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
test_settings = {
|
|
|
|
}
|
2018-10-17 02:31:51 -03:00
|
|
|
cls.gui = TorGuiShareTest.set_up(test_settings)
|
2018-09-22 03:50:39 -03:00
|
|
|
|
2018-10-16 01:53:35 -03:00
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
TorGuiShareTest.tear_down()
|
|
|
|
|
2019-01-16 02:52:42 -03:00
|
|
|
@pytest.mark.gui
|
2018-10-12 04:53:03 -03:00
|
|
|
@pytest.mark.tor
|
2019-04-18 23:38:44 -04:00
|
|
|
@pytest.mark.skipif(pytest.__version__ < '2.9', reason="requires newer pytest")
|
2018-10-14 21:15:32 -03:00
|
|
|
def test_gui(self):
|
2018-10-11 22:18:34 -03:00
|
|
|
self.run_all_common_setup_tests()
|
|
|
|
self.run_all_share_mode_tests(False, False)
|
2018-09-22 03:50:39 -03:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
unittest.main()
|