test: fix tests for qtheme v1

This commit is contained in:
wakonig_k authored and wyzula-jan committed 2025-10-15 14:10:12 +02:00
1 parent e18aa505c8
commit fb69ba96a5
4 files changed
+8 -12

No files matched your search

+4 -4
View File
@@ -64,10 +64,10 @@ 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.utility.visual.dark_mode_button.dark_mode_button.set_theme"
) as mocked_set_theme:
"bec_widgets.widgets.utility.visual.dark_mode_button.dark_mode_button.apply_theme"
) as mocked_apply_theme:
dark_mode_button.toggle_dark_mode()
mocked_set_theme.assert_called_with("dark")
mocked_apply_theme.assert_called_with("dark")
dark_mode_button.toggle_dark_mode()
mocked_set_theme.assert_called_with("light")
mocked_apply_theme.assert_called_with("light")