From 2693ce4c3843ef1b8aaab91737c48f50e2c528f2 Mon Sep 17 00:00:00 2001 From: wyzula-jan Date: Tue, 25 Jun 2024 19:40:05 +0200 Subject: [PATCH] fix(motor_movement): removed init to avoid circular imports --- bec_widgets/examples/__init__.py | 9 --------- bec_widgets/examples/motor_movement/__init__.py | 9 --------- tests/unit_tests/test_motor_control.py | 4 ++-- 3 files changed, 2 insertions(+), 20 deletions(-) diff --git a/bec_widgets/examples/__init__.py b/bec_widgets/examples/__init__.py index cdec4903..e69de29b 100644 --- a/bec_widgets/examples/__init__.py +++ b/bec_widgets/examples/__init__.py @@ -1,9 +0,0 @@ -from .motor_movement import ( - MotorControlApp, - MotorControlMap, - MotorControlPanel, - MotorControlPanelAbsolute, - MotorControlPanelRelative, - MotorCoordinateTable, - MotorThread, -) diff --git a/bec_widgets/examples/motor_movement/__init__.py b/bec_widgets/examples/motor_movement/__init__.py index 6e1ea76e..e69de29b 100644 --- a/bec_widgets/examples/motor_movement/__init__.py +++ b/bec_widgets/examples/motor_movement/__init__.py @@ -1,9 +0,0 @@ -from .motor_control_compilations import ( - MotorControlApp, - MotorControlMap, - MotorControlPanel, - MotorControlPanelAbsolute, - MotorControlPanelRelative, - MotorCoordinateTable, - MotorThread, -) diff --git a/tests/unit_tests/test_motor_control.py b/tests/unit_tests/test_motor_control.py index ed621d5a..baeb87db 100644 --- a/tests/unit_tests/test_motor_control.py +++ b/tests/unit_tests/test_motor_control.py @@ -3,14 +3,14 @@ from unittest.mock import MagicMock, patch import pytest from bec_lib.devicemanager import DeviceContainer - -from bec_widgets.examples import ( +from bec_widgets.examples.motor_movement.motor_control_compilations import ( MotorControlApp, MotorControlMap, MotorControlPanel, MotorControlPanelAbsolute, MotorControlPanelRelative, ) + from bec_widgets.widgets.motor_control.motor_control import MotorActions, MotorThread from bec_widgets.widgets.motor_control.motor_table.motor_table import MotorCoordinateTable from bec_widgets.widgets.motor_control.movement_absolute.movement_absolute import (