mirror of
https://github.com/meshtastic/python.git
synced 2026-04-26 18:09:34 -04:00
add channel index to send text
This commit is contained in:
@@ -404,7 +404,7 @@ def test_main_sendtext(capsys, reset_globals):
|
||||
Globals.getInstance().set_args(sys.argv)
|
||||
|
||||
iface = MagicMock(autospec=SerialInterface)
|
||||
def mock_sendText(text, dest, wantAck):
|
||||
def mock_sendText(text, dest, wantAck, channelIndex):
|
||||
print('inside mocked sendText')
|
||||
iface.sendText.side_effect = mock_sendText
|
||||
|
||||
@@ -425,7 +425,7 @@ def test_main_sendtext_with_dest(capsys, reset_globals):
|
||||
Globals.getInstance().set_args(sys.argv)
|
||||
|
||||
iface = MagicMock(autospec=SerialInterface)
|
||||
def mock_sendText(text, dest, wantAck):
|
||||
def mock_sendText(text, dest, wantAck, channelIndex):
|
||||
print('inside mocked sendText')
|
||||
iface.sendText.side_effect = mock_sendText
|
||||
|
||||
|
||||
Reference in New Issue
Block a user