migrate to a test__init__ file

This commit is contained in:
Mike Kinney
2021-12-06 21:07:40 -08:00
parent cc9b6cd7b1
commit 5883a28690
3 changed files with 17 additions and 9 deletions

View File

View 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()

View File

@@ -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()