Skip to content

Commit bcfb9a6

Browse files
committed
Reduce times in waitSignal* tests to improve test suite speed
1 parent 4d5d167 commit bcfb9a6

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

pytestqt/_tests/test_wait_signal.py

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,17 @@ def context_manager_wait(qtbot, signal, timeout, multiple, raising,
5454
('wait_function', 'emit_delay', 'timeout', 'expected_signal_triggered',
5555
'raising'),
5656
[
57-
(explicit_wait, 500, 2000, True, False),
58-
(explicit_wait, 500, None, True, False),
59-
(context_manager_wait, 500, 2000, True, False),
60-
(context_manager_wait, 500, None, True, False),
61-
(explicit_wait, 2000, 500, False, False),
62-
(context_manager_wait, 2000, 500, False, False),
63-
64-
(explicit_wait, 2000, 500, False, True),
65-
(context_manager_wait, 2000, 500, False, True),
66-
(explicit_wait, 2000, 500, False, True),
67-
(context_manager_wait, 2000, 500, False, True),
57+
(explicit_wait, 100, 200, True, False),
58+
(explicit_wait, 100, None, True, False),
59+
(context_manager_wait, 100, 200, True, False),
60+
(context_manager_wait, 100, None, True, False),
61+
(explicit_wait, 200, 100, False, False),
62+
(context_manager_wait, 200, 100, False, False),
63+
64+
(explicit_wait, 200, 100, False, True),
65+
(context_manager_wait, 200, 100, False, True),
66+
(explicit_wait, 200, 100, False, True),
67+
(context_manager_wait, 200, 100, False, True),
6868
]
6969
)
7070
def test_signal_triggered(qtbot, single_shot, wait_function, emit_delay,
@@ -100,18 +100,18 @@ def test_signal_triggered(qtbot, single_shot, wait_function, emit_delay,
100100
('wait_function', 'emit_delay_1', 'emit_delay_2', 'timeout',
101101
'expected_signal_triggered', 'raising'),
102102
[
103-
(explicit_wait, 500, 600, 2000, True, False),
104-
(explicit_wait, 500, 600, None, True, False),
105-
(context_manager_wait, 500, 600, 2000, True, False),
106-
(context_manager_wait, 500, 600, None, True, False),
107-
(explicit_wait, 2000, 2000, 500, False, False),
108-
(explicit_wait, 500, 2000, 1000, False, False),
109-
(explicit_wait, 2000, 500, 1000, False, False),
110-
(context_manager_wait, 2000, 2000, 500, False, False),
111-
(context_manager_wait, 500, 2000, 1000, False, False),
112-
(context_manager_wait, 2000, 500, 1000, False, False),
113-
(context_manager_wait, 2000, 500, 1000, False, True),
114-
(context_manager_wait, 500, 2000, 1000, False, True),
103+
(explicit_wait, 100, 150, 200, True, False),
104+
(explicit_wait, 100, 150, None, True, False),
105+
(context_manager_wait, 100, 150, 200, True, False),
106+
(context_manager_wait, 100, 150, None, True, False),
107+
(explicit_wait, 200, 200, 50, False, False),
108+
(explicit_wait, 100, 200, 150, False, False),
109+
(explicit_wait, 200, 50, 100, False, False),
110+
(context_manager_wait, 200, 200, 50, False, False),
111+
(context_manager_wait, 50, 200, 100, False, False),
112+
(context_manager_wait, 200, 50, 100, False, False),
113+
(context_manager_wait, 200, 50, 100, False, True),
114+
(context_manager_wait, 50, 200, 100, False, True),
115115
]
116116
)
117117
def test_signal_triggered_multiple(qtbot, single_shot, wait_function,

0 commit comments

Comments
 (0)