0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 03:31:50 +02:00

refactor(stop_button): moved to top layer, plugin added

This commit is contained in:
2024-07-06 20:48:15 +02:00
parent db1cdf4280
commit f5b8375fd3
10 changed files with 85 additions and 17 deletions

View File

@ -2,8 +2,7 @@
import pytest
from bec_widgets.widgets.buttons import StopButton
from bec_widgets.widgets.stop_button.stop_button import StopButton
from .client_mocks import mocked_client
@ -18,7 +17,10 @@ def stop_button(qtbot, mocked_client):
def test_stop_button(stop_button):
assert stop_button.text() == "Stop"
assert stop_button.styleSheet() == "background-color: #cc181e; color: white"
assert (
stop_button.styleSheet()
== "background-color: #cc181e; color: white; font-weight: bold; font-size: 12px;"
)
stop_button.click()
assert stop_button.queue.request_scan_abortion.called
assert stop_button.queue.request_queue_reset.called