Skip to content

Commit 1ddc0f0

Browse files
committed
Refined test cases for prompt_choices
1 parent 2a2aaea commit 1ddc0f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ def hello_john(msg):
706706
with hello_john:
707707
code = run('manage.py hello', manager.run)
708708
out, err = capsys.readouterr()
709-
assert 'john' in out
709+
assert 'hello - (peter, john, sam): john' in out
710710

711711
def test_command_with_default_prompt_choices(self, capsys):
712712

@@ -724,7 +724,7 @@ def hello_john(msg):
724724
with hello_john:
725725
code = run('manage.py hello', manager.run)
726726
out, err = capsys.readouterr()
727-
assert 'john' in out
727+
assert 'hello - (peter, charlie, sam) [john]: john' in out
728728

729729
@Catcher
730730
def hello_charlie(msg):
@@ -734,7 +734,7 @@ def hello_charlie(msg):
734734
with hello_charlie:
735735
code = run('manage.py hello', manager.run)
736736
out, err = capsys.readouterr()
737-
assert 'charlie' in out
737+
assert 'hello - (peter, charlie, sam) [john]: charlie' in out
738738

739739
class TestSubManager:
740740

0 commit comments

Comments
 (0)