mirror of
https://github.com/meshtastic/python.git
synced 2026-01-18 12:48:03 -05:00
migrate to a test__init__ file
This commit is contained in:
0
meshtastic/test/__init__.py
Normal file
0
meshtastic/test/__init__.py
Normal file
17
meshtastic/test/test__init__.py
Normal file
17
meshtastic/test/test__init__.py
Normal file
@@ -0,0 +1,17 @@
|
||||
"""Meshtastic unit tests for node.py"""
|
||||
import re
|
||||
import subprocess
|
||||
import platform
|
||||
|
||||
import pytest
|
||||
|
||||
from meshtastic.__init__ import MeshInterface
|
||||
|
||||
|
||||
@pytest.mark.unit
|
||||
def test_MeshInterface():
|
||||
"""Test that we instantiate a MeshInterface"""
|
||||
iface = MeshInterface(noProto=True)
|
||||
iface.showInfo()
|
||||
iface.localNode.showInfo()
|
||||
iface.close()
|
||||
@@ -36,12 +36,3 @@ def test_pskToString_one_byte_non_zero_value():
|
||||
def test_pskToString_many_bytes():
|
||||
"""Test pskToString many bytes"""
|
||||
assert pskToString(bytes([0x02, 0x01])) == 'secret'
|
||||
|
||||
|
||||
@pytest.mark.unit
|
||||
def test_MeshInterface():
|
||||
"""Test that we instantiate a MeshInterface"""
|
||||
iface = MeshInterface(noProto=True)
|
||||
iface.showInfo()
|
||||
iface.localNode.showInfo()
|
||||
iface.close()
|
||||
|
||||
Reference in New Issue
Block a user