test: Cleanup tests and use relative imports

This commit is contained in:
2024-11-08 08:31:39 +01:00
parent dc5906288c
commit 276ea8dd72
26 changed files with 79 additions and 33 deletions

5
tests/common/__init__.py Normal file
View File

@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
"""Init file for test group."""
__author__ = "Sven Sager"
__copyright__ = "Copyright (C) 2024 Sven Sager"
__license__ = "GPLv2"

View File

@@ -6,7 +6,7 @@ __license__ = "GPLv2"
from os.path import dirname
from tests import TestRevPiModIO
from .. import TestRevPiModIO
class TestConfigRscBugs(TestRevPiModIO):

View File

@@ -8,7 +8,7 @@ from os.path import dirname
from revpimodio2 import OUT, MEM, INP
from revpimodio2.device import Virtual, Base
from tests import TestRevPiModIO
from .. import TestRevPiModIO
class TestDevicesModule(TestRevPiModIO):

View File

@@ -9,7 +9,7 @@ from os.path import join, dirname
from shutil import copyfile
import revpimodio2
from tests import TestRevPiModIO
from .. import TestRevPiModIO
class TestInitModio(TestRevPiModIO):

View File

@@ -9,7 +9,7 @@ from os.path import join, dirname
from signal import SIGINT
from threading import Event
from tests import TestRevPiModIO
from .. import TestRevPiModIO
class TestModioClassBasics(TestRevPiModIO):