File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 56
56
" --cov-report"
57
57
" -r"
58
58
" --log-level"
59
+ " --tb"
59
60
" --disable-warnings"
60
61
" --capture=no"
61
62
" -k"
140
141
:choices '(" debug" " info" " warn" " error" )
141
142
:description " log level" )
142
143
144
+ (transient-define-infix test-cockpit-python--choose-traceback ()
145
+ :class 'transient-switches
146
+ :key " -t"
147
+ :argument-format " --tb=%s"
148
+ :argument-regexp " --tb=\\ (long\\ |short\\ |line\\ |native\\ |no\\ )"
149
+ :choices '(" long" " short" " line" " native" " no" )
150
+ :description " show traceback style" )
151
+
152
+
143
153
(defun test-cockpit-python--infix ()
144
154
" Setup the pytest specific test switches."
145
155
[[" Switches"
157
167
(" -r" " report output of passed tests" " -rFP" )
158
168
(" -w" " don't output warnings" " --disable-warnings" )
159
169
(" -n" " don't capture output" " --capture=no" )
160
- (" -L" " show locals in tracebacks" " --showlocals" )]])
170
+ (" -L" " show locals in tracebacks" " --showlocals" )
171
+ (test-cockpit-python--choose-traceback)]])
161
172
162
173
(defun test-cockpit-python--find-last-unindented-line ()
163
174
" Find the last unindented line from current point in current buffer."
You can’t perform that action at this time.
0 commit comments