mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-11 12:12:56 -03:00
297edbe637
This reverts commit 6227c58796
.
29 lines
762 B
Python
29 lines
762 B
Python
#!/usr/bin/env python3
|
|
import pytest
|
|
import unittest
|
|
|
|
from .GuiShareTest import GuiShareTest
|
|
|
|
class ShareModeTimerTest(unittest.TestCase, GuiShareTest):
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
test_settings = {
|
|
"public_mode": False,
|
|
"shutdown_timeout": True,
|
|
}
|
|
cls.gui = GuiShareTest.set_up(test_settings)
|
|
|
|
@classmethod
|
|
def tearDownClass(cls):
|
|
GuiShareTest.tear_down()
|
|
|
|
@pytest.mark.run(order=1)
|
|
def test_run_all_common_setup_tests(self):
|
|
GuiShareTest.run_all_common_setup_tests(self)
|
|
|
|
@pytest.mark.run(order=2)
|
|
def test_run_all_share_mode_timer_tests(self):
|
|
GuiShareTest.run_all_share_mode_timer_tests(self, False)
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|