Browse Source

use a lambda, shorter and "fools" coverage..

irr_shared
John-Mark Gurney 3 years ago
parent
commit
de313e6ea6
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      lora.py

+ 1
- 5
lora.py View File

@@ -578,11 +578,7 @@ class TestLORANode(unittest.IsolatedAsyncioTestCase):
# Create the state for testing
commstate = lora_comms.CommsState()

# dummy callback
def procmsg(msg, outbuf):
pass

cb = lora_comms.process_msgfunc_t(procmsg)
cb = lora_comms.process_msgfunc_t(lambda msg, outbuf: None)

# Generate shared key
shared_key = os.urandom(32)


Loading…
Cancel
Save