@@ -127,15 +127,15 @@ def test():
127
127
128
128
result = await runner .invoke (test , input = "y\n " )
129
129
assert not result .exception
130
- assert result .output == "Foo [y/N]: yes !\n "
130
+ assert result .output == "Foo [y/N]: y \n yes !\n "
131
131
132
132
result = await runner .invoke (test , input = "\n " )
133
133
assert not result .exception
134
- assert result .output == "Foo [y/N]: no :(\n "
134
+ assert result .output == "Foo [y/N]: \n no :(\n "
135
135
136
136
result = await runner .invoke (test , input = "n\n " )
137
137
assert not result .exception
138
- assert result .output == "Foo [y/N]: no :(\n "
138
+ assert result .output == "Foo [y/N]: n \n no :(\n "
139
139
140
140
@click .command ()
141
141
def test_no ():
@@ -146,15 +146,15 @@ def test_no():
146
146
147
147
result = await runner .invoke (test_no , input = "y\n " )
148
148
assert not result .exception
149
- assert result .output == "Foo [Y/n]: yes !\n "
149
+ assert result .output == "Foo [Y/n]: y \n yes !\n "
150
150
151
151
result = await runner .invoke (test_no , input = "\n " )
152
152
assert not result .exception
153
- assert result .output == "Foo [Y/n]: yes !\n "
153
+ assert result .output == "Foo [Y/n]: \n yes !\n "
154
154
155
155
result = await runner .invoke (test_no , input = "n\n " )
156
156
assert not result .exception
157
- assert result .output == "Foo [Y/n]: no :(\n "
157
+ assert result .output == "Foo [Y/n]: n \n no :(\n "
158
158
159
159
160
160
@pytest .mark .anyio
@@ -163,7 +163,7 @@ async def test_confirm_repeat(runner):
163
163
"cli" , params = [click .Option (["--a/--no-a" ], default = None , prompt = True )]
164
164
)
165
165
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 "
167
167
168
168
169
169
@pytest .mark .skipif (WIN , reason = "Different behavior on windows." )
0 commit comments