0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 11:41:49 +02:00

refactor(widgets): widget module structure reorganised

This commit is contained in:
2024-11-13 13:48:55 +01:00
parent 7a1b8748a4
commit aab0229a40
285 changed files with 418 additions and 364 deletions

View File

@ -5,7 +5,7 @@ from qtpy.QtCore import Qt
from qtpy.QtWidgets import QApplication
from bec_widgets.utils.colors import set_theme
from bec_widgets.widgets.dark_mode_button.dark_mode_button import DarkModeButton
from bec_widgets.widgets.utility.visual.dark_mode_button.dark_mode_button import DarkModeButton
# pylint: disable=unused-import
from .client_mocks import mocked_client
@ -64,7 +64,7 @@ def test_dark_mode_button_changes_theme(dark_mode_button):
Test that the dark mode button changes the theme correctly.
"""
with mock.patch(
"bec_widgets.widgets.dark_mode_button.dark_mode_button.set_theme"
"bec_widgets.widgets.utility.visual.dark_mode_button.dark_mode_button.set_theme"
) as mocked_set_theme:
dark_mode_button.toggle_dark_mode()
mocked_set_theme.assert_called_with("dark")