Files
AareDAQ/tests/unit/gui/test_splash_screen.py
T
duan_jandClaude Fable 5 669ba90317
CI / lint (push) Skipped
CI / test (3.11) (push) Skipped
CI / test (3.12) (push) Skipped
CI / test (3.13) (push) Skipped
CI / test-with-beamline-plugins (pxi_bec) (push) Skipped
CI / test-with-beamline-plugins (pxii_bec) (push) Skipped
CI / test-with-beamline-plugins (pxiii_bec) (push) Skipped
CI / test (3.11) (pull_request) Successful in 1m22s
CI / test (3.12) (pull_request) Successful in 1m25s
CI / test (3.13) (pull_request) Successful in 1m25s
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Successful in 1m26s
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Successful in 1m38s
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Successful in 1m41s
CI / test-with-coverage (pull_request) Successful in 2m4s
CI / coverage-analysis (pull_request) Successful in 3s
CI / lint (pull_request) Successful in 2m44s
test: cover the camera overlays, theme migration, layout heal, and splash
Diff coverage vs main was 77%, under the 80% CI gate; the new camera
help/error/badge code and the theme+layout main_window paths were the
uncovered bulk. Locally: 82%.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-10 10:56:17 +02:00

15 lines
438 B
Python

from PySide6.QtGui import QPixmap
from aare.gui.widgets.splash_screen import LoadingSplashScreen
def test_splash_progress_and_message(qtbot):
splash = LoadingSplashScreen(QPixmap(200, 100))
qtbot.addWidget(splash)
splash.set_progress(42, "Loading panels")
assert splash.progress.value() == 42
splash.set_progress(43) # message-less update takes the no-showMessage branch
assert splash.progress.value() == 43