Skip to content

Commit 6b27125

Browse files
committed
feat(pytest): complete --asyncio-mode arg
https://pytest-asyncio.readthedocs.io
1 parent d14cf0d commit 6b27125

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

completions/pytest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ _comp_cmd_pytest__option_choice_args()
44
{
55
local modes=$("$1" "$2=bash-completion-nonexistent" 2>&1 |
66
command sed -e 's/[^[:space:][:alnum:]_-]\{1,\}//g' \
7-
-ne 's/.*choose from //p')
7+
-e 's/.*choose from //p' -e 's/.*Valid modes //p' -e d)
88
_comp_compgen -a -- -W '$modes'
99
}
1010

@@ -86,7 +86,7 @@ _comp_cmd_pytest()
8686
_comp_compgen -- -W "{1..$REPLY} auto"
8787
return
8888
;;
89-
--dist | --record-mode | --vcr-record?(-mode))
89+
--dist | --@(asyncio|record)-mode | --vcr-record?(-mode))
9090
_comp_cmd_pytest__option_choice_args "$1" "$prev"
9191
return
9292
;;

0 commit comments

Comments
 (0)