From 69c820f8e549949181e02143a98318e6a65f9206 Mon Sep 17 00:00:00 2001 From: wouter bolsterlee Date: Thu, 30 Jul 2020 19:23:59 +0200 Subject: [PATCH] Revert "Add very verbose option (#22)" This reverts commit 6d8538a259e60da0abdb45365ef08bfe96b31b47. --- python-pytest.el | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/python-pytest.el b/python-pytest.el index 31916d4..0b479e3 100644 --- a/python-pytest.el +++ b/python-pytest.el @@ -116,9 +116,6 @@ When non-nil only ‘test_foo()’ will match, and nothing else." (defvar-local python-pytest--current-command nil "Current command; used in python-pytest-mode buffers.") -(defvar-local python-pytest--verbosity-level 0 - "Verbosity level.") - (fmakunbound 'python-pytest-popup) (makunbound 'python-pytest-popup) @@ -135,7 +132,7 @@ When non-nil only ‘test_foo()’ will match, and nothing else." (?q "quiet" "--quiet") (?s "do not capture output" "--capture=no") (?t "do not cut tracebacks" "--full-trace") - (?v "verbose" python-pytest--cycle-verbosity) + (?v "verbose" "--verbose") (?x "exit after first failure" "--exitfirst")) :options '((?k "only names matching expression" "-k") @@ -564,18 +561,6 @@ Example: ‘MyABCThingy.__repr__’ becomes ‘test_my_abc_thingy_repr’." (t nil))) -(defun python-pytest--cycle-verbosity () - "Cycle the verbosity level from 0 (no -v flag) to 2 (-vv flag)." - (cond - ((memq python-pytest--verbosity '(0 1)) - (setq python-pytest--verbosity (+ 1 python-pytest--verbosity))) - (t (setq python-pytest--verbosity 0))) - (cond - ((= python-pytest--verbosity 0) "") - ((= python-pytest--verbosity 1) "-v") - ((= python-pytest--verbosity 2) "-vv"))) - - ;; third party integration (with-eval-after-load 'direnv