2018-10-15 23:01:44 -03:00
|
|
|
#!/usr/bin/env python3
|
2019-01-16 02:52:42 -03:00
|
|
|
import pytest
|
2018-10-15 23:01:44 -03:00
|
|
|
import unittest
|
|
|
|
|
|
|
|
from .GuiReceiveTest import GuiReceiveTest
|
|
|
|
|
2019-10-13 01:01:25 -03:00
|
|
|
|
2018-10-15 23:01:44 -03:00
|
|
|
class LocalReceiveModeTimerTest(unittest.TestCase, GuiReceiveTest):
|
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
2019-10-13 01:01:25 -03:00
|
|
|
test_settings = {"public_mode": False, "autostop_timer": True}
|
2018-10-17 02:31:51 -03:00
|
|
|
cls.gui = GuiReceiveTest.set_up(test_settings)
|
2018-10-15 23:01:44 -03:00
|
|
|
|
2018-10-16 01:53:35 -03:00
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
GuiReceiveTest.tear_down()
|
|
|
|
|
2019-01-16 02:52:42 -03:00
|
|
|
@pytest.mark.gui
|
2019-10-13 01:01:25 -03:00
|
|
|
@pytest.mark.skipif(pytest.__version__ < "2.9", reason="requires newer pytest")
|
2018-10-15 23:01:44 -03:00
|
|
|
def test_gui(self):
|
|
|
|
self.run_all_common_setup_tests()
|
|
|
|
self.run_all_receive_mode_timer_tests(False)
|
|
|
|
|
2019-10-13 01:01:25 -03:00
|
|
|
|
2018-10-15 23:01:44 -03:00
|
|
|
if __name__ == "__main__":
|
|
|
|
unittest.main()
|