Files
AareDAQ/tests/unit/gui/test_splash_screen.py
duan_jandClaude Fable 5 7b4764e7ca 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-11 10:35:55 +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