diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-30 19:46:45 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-30 19:46:45 +0100 |
| commit | c088e442e8699f9461e74a8c94697e8c8d37d6dc (patch) | |
| tree | 29b8aa42480daeb19dc9354093b42a510d77cb66 /test_upscale_qt.py | |
| parent | 1953399f9bf0cf18ba54961583632d703eeaa07e (diff) | |
| download | upscale-qt-c088e442e8699f9461e74a8c94697e8c8d37d6dc.tar.gz upscale-qt-c088e442e8699f9461e74a8c94697e8c8d37d6dc.zip | |
Ask before quitting while an upscale runs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'test_upscale_qt.py')
| -rw-r--r-- | test_upscale_qt.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test_upscale_qt.py b/test_upscale_qt.py index 7175e92..37e0484 100644 --- a/test_upscale_qt.py +++ b/test_upscale_qt.py @@ -129,6 +129,10 @@ def test_quit_asks_when_unsaved(): assert not w.close() and len(answers) == 1 # declined, stays open w.jobs[0].saved = True assert w.close() and len(answers) == 1 # saved, no question + w.what = 'upscale' # pretend sd-cli runs + assert not w.close() and len(answers) == 2 # declined, stays open + QMessageBox.question = lambda *a: answers.append(a) or QMessageBox.StandardButton.Yes + assert w.close() and len(answers) == 3 finally: QMessageBox.question = real |
