first test running tests in github actions

This commit is contained in:
DJ2LS 2023-11-20 15:50:48 +01:00
parent e05ec46b66
commit e2c615b4ed
3 changed files with 4 additions and 5 deletions

View file

@ -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
View 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
View 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)