Fix wrong signal order in test_question
This never raised because of a pytest-qt bug.
This commit is contained in:
parent
1e32d1e01f
commit
25e7ee1dd0
@ -49,10 +49,10 @@ def test_mode_invalid(question):
|
|||||||
|
|
||||||
@pytest.mark.parametrize('mode, answer, signal_names', [
|
@pytest.mark.parametrize('mode, answer, signal_names', [
|
||||||
(usertypes.PromptMode.text, 'foo', ['answered', 'completed']),
|
(usertypes.PromptMode.text, 'foo', ['answered', 'completed']),
|
||||||
(usertypes.PromptMode.yesno, True, ['answered', 'completed',
|
(usertypes.PromptMode.yesno, True, ['answered', 'answered_yes',
|
||||||
'answered_yes']),
|
'completed']),
|
||||||
(usertypes.PromptMode.yesno, False, ['answered', 'completed',
|
(usertypes.PromptMode.yesno, False, ['answered', 'answered_no',
|
||||||
'answered_no']),
|
'completed']),
|
||||||
])
|
])
|
||||||
def test_done(mode, answer, signal_names, question, qtbot):
|
def test_done(mode, answer, signal_names, question, qtbot):
|
||||||
"""Test the 'done' method and completed/answered signals."""
|
"""Test the 'done' method and completed/answered signals."""
|
||||||
|
Loading…
Reference in New Issue
Block a user