File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -290,12 +290,19 @@ def run_rich_option_completion(self, rich_output_expected: bool):
290
290
self .assertIn ("[/yellow]" , completions )
291
291
elif rich_output_expected :
292
292
# \x1b[0m and \x1b[m are the same
293
- self .assertIn ("\x1b [1mimport path\x1b [" , completions )
294
293
if self .shell not in ["powershell" , "pwsh" ]:
295
- # on powershell the helps cycle through when you tab - so only the first one is listed
296
294
self .assertIn ("\x1b [7mcommands\x1b [" , completions )
297
295
self .assertIn ("\x1b [4;33mcommands\x1b [" , completions )
298
296
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
+
299
306
else :
300
307
self .assertNotIn ("\x1b [7mcommands\x1b [" , completions )
301
308
self .assertNotIn ("\x1b [4;33mcommands\x1b [" , completions )
You can’t perform that action at this time.
0 commit comments