File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -291,18 +291,10 @@ def run_rich_option_completion(self, rich_output_expected: bool):
291
291
elif rich_output_expected :
292
292
# \x1b[0m and \x1b[m are the same
293
293
if self .shell not in ["powershell" , "pwsh" ]:
294
+ # exempt powershell from this because it filters the codes anyway
294
295
self .assertIn ("\x1b [7mcommands\x1b [" , completions )
295
296
self .assertIn ("\x1b [4;33mcommands\x1b [" , completions )
296
297
self .assertIn ("\x1b [1mname\x1b [" , completions )
297
- else :
298
- # on powershell the helps cycle through when you tab - so only one is listed
299
- self .assertTrue (
300
- "\x1b [1mimport path\x1b [" in completions
301
- or "\x1b [7mcommands\x1b [" in completions
302
- or "\x1b [4;33mcommands\x1b [" in completions
303
- or "\x1b [1mname\x1b [" in completions
304
- )
305
-
306
298
else :
307
299
self .assertNotIn ("\x1b [7mcommands\x1b [" , completions )
308
300
self .assertNotIn ("\x1b [4;33mcommands\x1b [" , completions )
You can’t perform that action at this time.
0 commit comments