@@ -127,15 +127,15 @@ def test():
127127
128128 result = await runner .invoke (test , input = "y\n " )
129129 assert not result .exception
130- assert result .output == "Foo [y/N]: yes !\n "
130+ assert result .output == "Foo [y/N]: y \n yes !\n "
131131
132132 result = await runner .invoke (test , input = "\n " )
133133 assert not result .exception
134- assert result .output == "Foo [y/N]: no :(\n "
134+ assert result .output == "Foo [y/N]: \n no :(\n "
135135
136136 result = await runner .invoke (test , input = "n\n " )
137137 assert not result .exception
138- assert result .output == "Foo [y/N]: no :(\n "
138+ assert result .output == "Foo [y/N]: n \n no :(\n "
139139
140140 @click .command ()
141141 def test_no ():
@@ -146,15 +146,15 @@ def test_no():
146146
147147 result = await runner .invoke (test_no , input = "y\n " )
148148 assert not result .exception
149- assert result .output == "Foo [Y/n]: yes !\n "
149+ assert result .output == "Foo [Y/n]: y \n yes !\n "
150150
151151 result = await runner .invoke (test_no , input = "\n " )
152152 assert not result .exception
153- assert result .output == "Foo [Y/n]: yes !\n "
153+ assert result .output == "Foo [Y/n]: \n yes !\n "
154154
155155 result = await runner .invoke (test_no , input = "n\n " )
156156 assert not result .exception
157- assert result .output == "Foo [Y/n]: no :(\n "
157+ assert result .output == "Foo [Y/n]: n \n no :(\n "
158158
159159
160160@pytest .mark .anyio
@@ -163,7 +163,7 @@ async def test_confirm_repeat(runner):
163163 "cli" , params = [click .Option (["--a/--no-a" ], default = None , prompt = True )]
164164 )
165165 result = await runner .invoke (cli , input = "\n y\n " )
166- assert result .output == "A [y/n]: Error : invalid input\n A [y/n]: "
166+ assert result .output == "A [y/n]: \n Error : invalid input\n A [y/n]: y \n "
167167
168168
169169@pytest .mark .skipif (WIN , reason = "Different behavior on windows." )
0 commit comments