Skip to content

Commit

Permalink
Add support for pytest -vv
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-mueller committed Oct 27, 2023
1 parent 5bb0546 commit 911e42d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions test-cockpit-python.el
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
(defconst test-cockpit-python--allowed-switches
'("--last-failed"
"--verbose"
"-vv"
"--no-cov"
"--cov"
"--cov-report"
Expand Down Expand Up @@ -138,6 +139,7 @@
("-M" "test type hints" "--mypy")]
["Output"
("-v" "show single tests" "--verbose")
("-V" "verbose output" "-vv")
("-c" "print coverage report" "--cov-report=term-missing")
("-r" "report output of passed tests" "-rFP")
("-w" "don't output warnings" "--disable-warnings")
Expand Down
9 changes: 5 additions & 4 deletions test/test-python.el-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,8 @@ async def test_first_outer():
(should (equal (aref (aref infix 0) 5) '("-M" "test type hints" "--mypy")))
(should (equal (aref (aref infix 1) 0) "Output"))
(should (equal (aref (aref infix 1) 1) '("-v" "show single tests" "--verbose")))
(should (equal (aref (aref infix 1) 2) '("-c" "print coverage report" "--cov-report=term-missing")))
(should (equal (aref (aref infix 1) 3) '("-r" "report output of passed tests" "-rFP")))
(should (equal (aref (aref infix 1) 4) '("-w" "don't output warnings" "--disable-warnings")))
(should (equal (aref (aref infix 1) 5) '("-n" "don't capture output" "--capture=no"))))))
(should (equal (aref (aref infix 1) 2) '("-V" "verbose output" "-vv")))
(should (equal (aref (aref infix 1) 3) '("-c" "print coverage report" "--cov-report=term-missing")))
(should (equal (aref (aref infix 1) 4) '("-r" "report output of passed tests" "-rFP")))
(should (equal (aref (aref infix 1) 5) '("-w" "don't output warnings" "--disable-warnings")))
(should (equal (aref (aref infix 1) 6) '("-n" "don't capture output" "--capture=no"))))))

0 comments on commit 911e42d

Please sign in to comment.