Skip to content

Commit bfcd288

Browse files
add option --log-cli-level in python-pytest-dispatch (#74)
1 parent 1ecfb44 commit bfcd288

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

python-pytest.el

+9-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ When non-nil only ‘test_foo()’ will match, and nothing else."
146146
[("-c" "color" "--color")
147147
("-q" "quiet" "--quiet")
148148
("-s" "no output capture" "--capture=no")
149-
(python-pytest:-v)]]
149+
(python-pytest:-v)
150+
(python-pytest:--l)]]
150151
["Selection, filtering, ordering"
151152
[(python-pytest:-k)
152153
(python-pytest:-m)
@@ -484,6 +485,13 @@ When present ON-REPLACEMENT is substituted, else OFF-REPLACEMENT is appended."
484485
(formatted-input (format " %s" quoted-input)))
485486
formatted-input))
486487

488+
(transient-define-argument python-pytest:--l ()
489+
:description "set log cli level"
490+
:class 'transient-option
491+
:key "--l"
492+
:argument "--log-cli-level="
493+
:choices '("debug" "info" "warning" "error" "critical"))
494+
487495
(transient-define-argument python-pytest:-k ()
488496
:description "only names matching expression"
489497
:class 'transient-option

0 commit comments

Comments
 (0)