Skip to content

Commit

Permalink
first test running tests in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
DJ2LS committed Nov 20, 2023
1 parent e05ec46 commit e2c615b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions modem/config.ini.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[NETWORK]
modemport = 3000
modemport = 3050

[STATION]
mycall = XX1XXX
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/test_config.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion tests/test_server.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit e2c615b

Please sign in to comment.