diff --git a/meshtastic/test/test_mesh_interface.py b/meshtastic/test/test_mesh_interface.py index 5862141..325c17a 100644 --- a/meshtastic/test/test_mesh_interface.py +++ b/meshtastic/test/test_mesh_interface.py @@ -4,7 +4,7 @@ import re import pytest -from meshtastic.mesh_interface import MeshInterface +from ..mesh_interface import MeshInterface @pytest.mark.unit diff --git a/meshtastic/test/test_smoke1.py b/meshtastic/test/test_smoke1.py index 242604f..a7f4b00 100644 --- a/meshtastic/test/test_smoke1.py +++ b/meshtastic/test/test_smoke1.py @@ -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] diff --git a/meshtastic/test/test_stream_interface.py b/meshtastic/test/test_stream_interface.py index 2d051cb..57c65d2 100644 --- a/meshtastic/test/test_stream_interface.py +++ b/meshtastic/test/test_stream_interface.py @@ -3,7 +3,7 @@ import pytest -from meshtastic.stream_interface import StreamInterface +from ..stream_interface import StreamInterface @pytest.mark.unit diff --git a/meshtastic/test/test_tcp_interface.py b/meshtastic/test/test_tcp_interface.py index aa35018..432caef 100644 --- a/meshtastic/test/test_tcp_interface.py +++ b/meshtastic/test/test_tcp_interface.py @@ -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