igengx
This commit is contained in:
@@ -167,6 +167,18 @@ def shell_window(
|
||||
application.processEvents()
|
||||
|
||||
|
||||
def test_minimize_preserves_session_and_close_requests_application_exit(
|
||||
shell_window: ShellWindow, application: QApplication
|
||||
) -> None:
|
||||
exits = []
|
||||
shell_window.close_requested.connect(lambda: exits.append(True))
|
||||
shell_window.showMinimized()
|
||||
application.processEvents()
|
||||
assert exits == []
|
||||
shell_window.close()
|
||||
assert exits == [True]
|
||||
|
||||
|
||||
def test_legacy_shell_matches_reference_geometry_at_both_acceptance_sizes(
|
||||
application: QApplication,
|
||||
shell_window: ShellWindow,
|
||||
|
||||
Reference in New Issue
Block a user