2018-09-22 16:50:39 +10:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
import pytest
|
2018-10-12 11:28:47 +11:00
|
|
|
import unittest
|
2018-09-22 16:50:39 +10:00
|
|
|
|
2018-10-12 11:28:47 +11:00
|
|
|
from .GuiReceiveTest import GuiReceiveTest
|
2018-09-24 10:41:48 +10:00
|
|
|
|
2018-10-12 11:28:47 +11:00
|
|
|
class ReceiveModeTest(unittest.TestCase, GuiReceiveTest):
|
2018-09-22 16:50:39 +10:00
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
test_settings = {
|
2018-09-30 18:32:18 -07:00
|
|
|
"receive_allow_receiver_shutdown": True
|
2018-09-22 16:50:39 +10:00
|
|
|
}
|
2018-10-12 11:50:12 +11:00
|
|
|
cls.gui = GuiReceiveTest.set_up(test_settings)
|
2018-09-27 17:34:46 -07:00
|
|
|
|
2018-09-22 16:50:39 +10:00
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
2018-10-12 11:28:47 +11:00
|
|
|
GuiReceiveTest.tear_down()
|
2018-09-22 16:50:39 +10:00
|
|
|
|
|
|
|
@pytest.mark.run(order=1)
|
2018-10-11 15:09:27 +11:00
|
|
|
def test_run_all_common_setup_tests(self):
|
2018-10-12 11:28:47 +11:00
|
|
|
GuiReceiveTest.run_all_common_setup_tests(self)
|
2018-09-22 16:50:39 +10:00
|
|
|
|
|
|
|
@pytest.mark.run(order=2)
|
2018-10-12 11:28:47 +11:00
|
|
|
def test_run_all_receive_mode_tests(self):
|
|
|
|
GuiReceiveTest.run_all_receive_mode_tests(self, False, True)
|
2018-09-22 16:50:39 +10:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
unittest.main()
|