Skip to content

Commit f701b14

Browse files
Add support for pytest --showlocals
Fixes #29
1 parent 26fe593 commit f701b14

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

test-cockpit-python.el

+4-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@
6161
"-k"
6262
"-m"
6363
"--mypy"
64-
"--exitfirst"))
64+
"--exitfirst"
65+
"--showlocals"))
6566

6667
(defun test-cockpit-python--test-project-command (_ args)
6768
"Make the test project command from ARGS."
@@ -155,7 +156,8 @@
155156
("-c" "print coverage report" "--cov-report=term-missing")
156157
("-r" "report output of passed tests" "-rFP")
157158
("-w" "don't output warnings" "--disable-warnings")
158-
("-n" "don't capture output" "--capture=no")]])
159+
("-n" "don't capture output" "--capture=no")
160+
("-L" "show locals in tracebacks" "--showlocals")]])
159161

160162
(defun test-cockpit-python--find-last-unindented-line ()
161163
"Find the last unindented line from current point in current buffer."

test/test-python.el-test.el

+2-1
Original file line numberDiff line numberDiff line change
@@ -403,4 +403,5 @@ async def test_first_outer():
403403
(should (equal (aref (aref infix 1) 4) '("-c" "print coverage report" "--cov-report=term-missing")))
404404
(should (equal (aref (aref infix 1) 5) '("-r" "report output of passed tests" "-rFP")))
405405
(should (equal (aref (aref infix 1) 6) '("-w" "don't output warnings" "--disable-warnings")))
406-
(should (equal (aref (aref infix 1) 7) '("-n" "don't capture output" "--capture=no"))))))
406+
(should (equal (aref (aref infix 1) 7) '("-n" "don't capture output" "--capture=no")))
407+
(should (equal (aref (aref infix 1) 8) '("-L" "show locals in tracebacks" "--showlocals"))))))

0 commit comments

Comments
 (0)