add unit tests for showChannels(), deleteChannel(), getChannelByName(), getDisabledChannel(), getAdminChannelIndex(), turnOffEncryptionOnPrimaryChannel(), and writeConfig()

This commit is contained in:
Mike Kinney
2021-12-21 22:13:02 -08:00
parent 8e578c3b24
commit 8bf1dd6dcb
2 changed files with 277 additions and 0 deletions

View File

@@ -28,7 +28,9 @@ class Node:
"""Show human readable description of our channels."""
print("Channels:")
if self.channels:
logging.debug(f'self.channels:{self.channels}')
for c in self.channels:
#print('c.settings.psk:', c.settings.psk)
cStr = stripnl(MessageToJson(c.settings))
# only show if there is no psk (meaning disabled channel)
if c.settings.psk: