Function: projectile-test-at-point-python-command
projectile-test-at-point-python-command is a byte-compiled function
defined in projectile.el.
Signature
(projectile-test-at-point-python-command TEST-NAME FILE-NAME)
Documentation
Return a pytest command running TEST-NAME in FILE-NAME.
TEST-NAME and FILE-NAME are shell-quoted: a test name comes from the buffer's own source and a file name from the repository, so an unquoted interpolation would let a hostile project inject shell code.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-test-at-point-python-command (test-name file-name)
"Return a pytest command running TEST-NAME in FILE-NAME.
TEST-NAME and FILE-NAME are shell-quoted: a test name comes from the
buffer's own source and a file name from the repository, so an
unquoted interpolation would let a hostile project inject shell code."
(format "python -m pytest %s::%s"
(shell-quote-argument file-name)
(shell-quote-argument test-name)))