Skip to content

Commit

Permalink
add option --log-cli-level in python-pytest-dispatch (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-morales-1 authored Aug 10, 2024
1 parent 1ecfb44 commit bfcd288
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion python-pytest.el
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ When non-nil only ‘test_foo()’ will match, and nothing else."
[("-c" "color" "--color")
("-q" "quiet" "--quiet")
("-s" "no output capture" "--capture=no")
(python-pytest:-v)]]
(python-pytest:-v)
(python-pytest:--l)]]
["Selection, filtering, ordering"
[(python-pytest:-k)
(python-pytest:-m)
Expand Down Expand Up @@ -484,6 +485,13 @@ When present ON-REPLACEMENT is substituted, else OFF-REPLACEMENT is appended."
(formatted-input (format " %s" quoted-input)))
formatted-input))

(transient-define-argument python-pytest:--l ()
:description "set log cli level"
:class 'transient-option
:key "--l"
:argument "--log-cli-level="
:choices '("debug" "info" "warning" "error" "critical"))

(transient-define-argument python-pytest:-k ()
:description "only names matching expression"
:class 'transient-option
Expand Down

0 comments on commit bfcd288

Please sign in to comment.