mirror of
https://github.com/meshtastic/python.git
synced 2026-09-14 22:39:18 -04:00
migrate to a test__init__ file
This commit is contained in:
1 parent
cc9b6cd7b1
commit
5883a28690
3 files changed
+17
-9
No files matched your search
Whitespace-only changes.
@@ -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