2019-03-04 18:28:27 -05:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
import pytest
|
|
|
|
import unittest
|
|
|
|
|
|
|
|
from .GuiShareTest import GuiShareTest
|
|
|
|
|
2019-03-25 00:28:31 -04:00
|
|
|
class LocalShareModeAutoStartTimerTest(unittest.TestCase, GuiShareTest):
|
2019-03-04 18:28:27 -05:00
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
test_settings = {
|
|
|
|
"public_mode": False,
|
2019-03-25 00:28:31 -04:00
|
|
|
"autostart_timer": True,
|
2019-03-04 18:28:27 -05:00
|
|
|
}
|
|
|
|
cls.gui = GuiShareTest.set_up(test_settings)
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
GuiShareTest.tear_down()
|
|
|
|
|
|
|
|
@pytest.mark.gui
|
2019-04-18 23:38:44 -04:00
|
|
|
@pytest.mark.skipif(pytest.__version__ < '2.9', reason="requires newer pytest")
|
2019-03-04 18:28:27 -05:00
|
|
|
def test_gui(self):
|
|
|
|
self.run_all_common_setup_tests()
|
2019-03-25 00:28:31 -04:00
|
|
|
self.run_all_share_mode_autostart_timer_tests(False)
|
2019-03-04 18:28:27 -05:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
unittest.main()
|