mirror of
https://github.com/naruxde/revpimodio2.git
synced 2025-11-08 22:03:53 +01:00
test: Cleanup tests and use relative imports
This commit is contained in:
5
tests/common/__init__.py
Normal file
5
tests/common/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""Init file for test group."""
|
||||
__author__ = "Sven Sager"
|
||||
__copyright__ = "Copyright (C) 2024 Sven Sager"
|
||||
__license__ = "GPLv2"
|
||||
@@ -6,7 +6,7 @@ __license__ = "GPLv2"
|
||||
|
||||
from os.path import dirname
|
||||
|
||||
from tests import TestRevPiModIO
|
||||
from .. import TestRevPiModIO
|
||||
|
||||
|
||||
class TestConfigRscBugs(TestRevPiModIO):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user