From 12f3f2e856af49b1d23ef9facb7785a7da492611 Mon Sep 17 00:00:00 2001 From: "Peter F. Patel-Schneider" Date: Wed, 27 Mar 2024 14:41:12 -0400 Subject: [PATCH] tests: adjust imports to always import installed version --- tests/logitech_receiver/test_common.py | 2 +- tests/logitech_receiver/test_hidpp10.py | 8 ++++---- tests/logitech_receiver/test_hidpp20_complex.py | 8 ++++---- tests/logitech_receiver/test_hidpp20_simple.py | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/logitech_receiver/test_common.py b/tests/logitech_receiver/test_common.py index 8681d453..2f9010a3 100644 --- a/tests/logitech_receiver/test_common.py +++ b/tests/logitech_receiver/test_common.py @@ -1,7 +1,7 @@ import pytest import yaml -from lib.logitech_receiver import common +from logitech_receiver import common def test_crc16(): diff --git a/tests/logitech_receiver/test_hidpp10.py b/tests/logitech_receiver/test_hidpp10.py index 2cbaf1c6..28621ab4 100644 --- a/tests/logitech_receiver/test_hidpp10.py +++ b/tests/logitech_receiver/test_hidpp10.py @@ -6,10 +6,10 @@ from typing import Optional import pytest -from lib.logitech_receiver import common -from lib.logitech_receiver import hidpp10 -from lib.logitech_receiver import hidpp10_constants -from lib.logitech_receiver import hidpp20_constants +from logitech_receiver import common +from logitech_receiver import hidpp10 +from logitech_receiver import hidpp10_constants +from logitech_receiver import hidpp20_constants _hidpp10 = hidpp10.Hidpp10() diff --git a/tests/logitech_receiver/test_hidpp20_complex.py b/tests/logitech_receiver/test_hidpp20_complex.py index 9860f898..7fb29c99 100644 --- a/tests/logitech_receiver/test_hidpp20_complex.py +++ b/tests/logitech_receiver/test_hidpp20_complex.py @@ -5,10 +5,10 @@ from typing import Any import pytest -from lib.logitech_receiver import common -from lib.logitech_receiver import hidpp20 -from lib.logitech_receiver import hidpp20_constants -from lib.logitech_receiver import special_keys +from logitech_receiver import common +from logitech_receiver import hidpp20 +from logitech_receiver import hidpp20_constants +from logitech_receiver import special_keys from . import hidpp diff --git a/tests/logitech_receiver/test_hidpp20_simple.py b/tests/logitech_receiver/test_hidpp20_simple.py index e90274b7..7b15ca08 100644 --- a/tests/logitech_receiver/test_hidpp20_simple.py +++ b/tests/logitech_receiver/test_hidpp20_simple.py @@ -2,9 +2,9 @@ from dataclasses import dataclass import pytest -from lib.logitech_receiver import common -from lib.logitech_receiver import hidpp20 -from lib.logitech_receiver import hidpp20_constants +from logitech_receiver import common +from logitech_receiver import hidpp20 +from logitech_receiver import hidpp20_constants from . import hidpp