change to relative importing

This commit is contained in:
Mike Kinney
2021-12-09 00:26:28 -08:00
parent 55e374c89b
commit af6c54db08
4 changed files with 5 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ import re
import pytest
from meshtastic.mesh_interface import MeshInterface
from ..mesh_interface import MeshInterface
@pytest.mark.unit

View File

@@ -8,7 +8,7 @@ import os
# sense to pause for the radio at apprpriate times
import pytest
import meshtastic
from ..util import findPorts
# seconds to pause after running a meshtastic command
PAUSE_AFTER_COMMAND = 2
@@ -143,7 +143,7 @@ def test_smoke1_send_hello():
def test_smoke1_port():
"""Test --port"""
# first, get the ports
ports = meshtastic.util.findPorts()
ports = findPorts()
# hopefully there is just one
assert len(ports) == 1
port = ports[0]

View File

@@ -3,7 +3,7 @@
import pytest
from meshtastic.stream_interface import StreamInterface
from ..stream_interface import StreamInterface
@pytest.mark.unit

View File

@@ -5,7 +5,7 @@ import re
from unittest.mock import patch
import pytest
from meshtastic.tcp_interface import TCPInterface
from ..tcp_interface import TCPInterface
@pytest.mark.unit