tests: adjust imports to always import installed version
This commit is contained in:
parent
cb16a46b93
commit
12f3f2e856
|
@ -1,7 +1,7 @@
|
||||||
import pytest
|
import pytest
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
from lib.logitech_receiver import common
|
from logitech_receiver import common
|
||||||
|
|
||||||
|
|
||||||
def test_crc16():
|
def test_crc16():
|
||||||
|
|
|
@ -6,10 +6,10 @@ from typing import Optional
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from lib.logitech_receiver import common
|
from logitech_receiver import common
|
||||||
from lib.logitech_receiver import hidpp10
|
from logitech_receiver import hidpp10
|
||||||
from lib.logitech_receiver import hidpp10_constants
|
from logitech_receiver import hidpp10_constants
|
||||||
from lib.logitech_receiver import hidpp20_constants
|
from logitech_receiver import hidpp20_constants
|
||||||
|
|
||||||
_hidpp10 = hidpp10.Hidpp10()
|
_hidpp10 = hidpp10.Hidpp10()
|
||||||
|
|
||||||
|
|
|
@ -5,10 +5,10 @@ from typing import Any
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from lib.logitech_receiver import common
|
from logitech_receiver import common
|
||||||
from lib.logitech_receiver import hidpp20
|
from logitech_receiver import hidpp20
|
||||||
from lib.logitech_receiver import hidpp20_constants
|
from logitech_receiver import hidpp20_constants
|
||||||
from lib.logitech_receiver import special_keys
|
from logitech_receiver import special_keys
|
||||||
|
|
||||||
from . import hidpp
|
from . import hidpp
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,9 @@ from dataclasses import dataclass
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from lib.logitech_receiver import common
|
from logitech_receiver import common
|
||||||
from lib.logitech_receiver import hidpp20
|
from logitech_receiver import hidpp20
|
||||||
from lib.logitech_receiver import hidpp20_constants
|
from logitech_receiver import hidpp20_constants
|
||||||
|
|
||||||
from . import hidpp
|
from . import hidpp
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue