Skip to content

Commit 66128fd

Browse files
authored
make dap-python--debug-test-at-point work (#504)
1 parent 5d1aa24 commit 66128fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dap-python.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ https://github.com/pyenv/pyenv-which-ext."
152152
"Return the debug template whose name is TEMPLATE-NAME.
153153
For the name, only the template's `car' is checked, not its
154154
`:name' property."
155-
(--first (string= template-name it) dap-debug-template-configurations))
155+
(cdr (--first (string= template-name (car it)) dap-debug-template-configurations)))
156156

157157
(defalias 'dap-python--debug-test-at-point #'dap-python-debug-test-at-point)
158158
(defun dap-python-debug-test-at-point ()
@@ -280,7 +280,7 @@ strings, for the sake of launch.json feature parity."
280280

281281
(dap-register-debug-provider "python-test-at-point" 'dap-python--populate-test-at-point)
282282
(dap-register-debug-template "Python :: Run pytest (at point)"
283-
(list :type "python-test-at-point"
283+
(list :type "python"
284284
:args ""
285285
:program nil
286286
:module "pytest"

0 commit comments

Comments
 (0)