mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Update for consistency with other tests.
This commit is contained in:
parent
ba4bc03a87
commit
3a8cc57a72
1 changed files with 7 additions and 11 deletions
|
@ -8,6 +8,7 @@ import time
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
# pylint: disable=wrong-import-position
|
||||||
sys.path.insert(0, "..")
|
sys.path.insert(0, "..")
|
||||||
sys.path.insert(0, "../tnc")
|
sys.path.insert(0, "../tnc")
|
||||||
import helpers
|
import helpers
|
||||||
|
@ -86,11 +87,6 @@ def t_create_start_session(mycall: str, dxcall: str) -> bytearray:
|
||||||
return t_create_frame(221, mycall, dxcall)
|
return t_create_frame(221, mycall, dxcall)
|
||||||
|
|
||||||
|
|
||||||
def t_tsh_dummy():
|
|
||||||
"""Replacement function for transmit"""
|
|
||||||
print("In t_tsh_dummy")
|
|
||||||
|
|
||||||
|
|
||||||
def t_modem():
|
def t_modem():
|
||||||
"""
|
"""
|
||||||
Execute test to validate that receiving a session open frame sets the correct machine
|
Execute test to validate that receiving a session open frame sets the correct machine
|
||||||
|
@ -99,12 +95,6 @@ def t_modem():
|
||||||
t_mode = t_repeats = t_repeat_delay = 0
|
t_mode = t_repeats = t_repeat_delay = 0
|
||||||
t_frames = []
|
t_frames = []
|
||||||
|
|
||||||
# enable testmode
|
|
||||||
modem.TESTMODE = True
|
|
||||||
modem.RXCHANNEL = "/tmp/hfchannel1"
|
|
||||||
modem.TXCHANNEL = "/tmp/hfchannel2"
|
|
||||||
static.HAMLIB_RADIOCONTROL = "disabled"
|
|
||||||
|
|
||||||
def t_tx_dummy(mode, repeats, repeat_delay, frames):
|
def t_tx_dummy(mode, repeats, repeat_delay, frames):
|
||||||
"""Replacement function for transmit"""
|
"""Replacement function for transmit"""
|
||||||
print(f"t_tx_dummy: In transmit({mode}, {repeats}, {repeat_delay}, {frames})")
|
print(f"t_tx_dummy: In transmit({mode}, {repeats}, {repeat_delay}, {frames})")
|
||||||
|
@ -115,6 +105,12 @@ def t_modem():
|
||||||
t_frames = frames[:]
|
t_frames = frames[:]
|
||||||
static.TRANSMITTING = False
|
static.TRANSMITTING = False
|
||||||
|
|
||||||
|
# enable testmode
|
||||||
|
modem.TESTMODE = True
|
||||||
|
modem.RXCHANNEL = "/tmp/hfchannel1"
|
||||||
|
modem.TXCHANNEL = "/tmp/hfchannel2"
|
||||||
|
static.HAMLIB_RADIOCONTROL = "disabled"
|
||||||
|
|
||||||
# Create the modem
|
# Create the modem
|
||||||
local_modem = modem.RF()
|
local_modem = modem.RF()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue