Skip to content

Commit 9c4ed4d

Browse files
committed
Fix tests
1 parent 095ff26 commit 9c4ed4d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

dap-python.el

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,14 @@ https://github.com/pyenv/pyenv-which-ext."
155155

156156
(defun dap-python--nearest-test (lsp-symbols)
157157
(cl-callf reverse lsp-symbols)
158-
(when-let ((test-symbol (-first 'dap-python--test-p lsp-symbols))
159-
(class-symbol
160-
(-first (-partial 'dap-python--test-class-p test-symbol)
161-
lsp-symbols)))
162-
(if (eq nil class-symbol)
163-
(concat "::" (dap-python--symbol-name test-symbol))
164-
(concat "::" (dap-python--symbol-name class-symbol)
165-
"::" (dap-python--symbol-name test-symbol)))))
158+
(when-let ((test-symbol (-first 'dap-python--test-p lsp-symbols)))
159+
(let ((class-symbol
160+
(-first (-partial 'dap-python--test-class-p test-symbol)
161+
lsp-symbols)))
162+
(if (eq nil class-symbol)
163+
(concat "::" (dap-python--symbol-name test-symbol))
164+
(concat "::" (dap-python--symbol-name class-symbol)
165+
"::" (dap-python--symbol-name test-symbol))))))
166166

167167
(defun dap-python--cursor-position ()
168168
(make-dap-python--point :line (line-number-at-pos)

0 commit comments

Comments
 (0)