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>
15 lines
438 B
Python
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
|