mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
first test running tests in github actions
This commit is contained in:
parent
e05ec46b66
commit
e2c615b4ed
|
@ -1,5 +1,5 @@
|
|||
[NETWORK]
|
||||
modemport = 3000
|
||||
modemport = 3050
|
||||
|
||||
[STATION]
|
||||
mycall = XX1XXX
|
||||
|
@ -49,7 +49,6 @@ tuning_range_fmax = 50
|
|||
tuning_range_fmin = -50
|
||||
enable_fsk = False
|
||||
enable_low_bandwidth_mode = False
|
||||
enable_hmac = False
|
||||
enable_morse_identifier = False
|
||||
respond_to_cq = False
|
||||
rx_buffer_size = 64
|
||||
|
|
4
tests/test_config.py
Normal file → Executable file
4
tests/test_config.py
Normal file → Executable file
|
@ -5,10 +5,10 @@ class TestConfigMethods(unittest.TestCase):
|
|||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
cls.config = config.CONFIG('modem/config.ini')
|
||||
cls.config = config.CONFIG('modem/config.ini.example')
|
||||
|
||||
def test_config_exists(self):
|
||||
c = config.CONFIG('modem/config.ini')
|
||||
c = config.CONFIG('modem/config.ini.example')
|
||||
self.assertTrue(c.config_exists())
|
||||
|
||||
c = config.CONFIG('modem/nonexistant.ini')
|
||||
|
|
2
tests/test_server.py
Normal file → Executable file
2
tests/test_server.py
Normal file → Executable file
|
@ -15,7 +15,7 @@ class TestIntegration(unittest.TestCase):
|
|||
def setUpClass(cls):
|
||||
cmd = "flask --app modem/server run"
|
||||
my_env = os.environ.copy()
|
||||
my_env["FREEDATA_CONFIG"] = "modem/config.ini"
|
||||
my_env["FREEDATA_CONFIG"] = "modem/config.ini.example"
|
||||
cls.process = Popen(shlex.split(cmd), stdin=PIPE, env=my_env)
|
||||
time.sleep(1)
|
||||
|
||||
|
|
Loading…
Reference in a new issue