Add keybinding to rerun pytest

This commit is contained in:
Jeremy Dormitzer 2020-03-31 22:39:09 -04:00
parent 8cd0d3167b
commit f849e692b5

View File

@ -2880,9 +2880,10 @@ And support pyenv (NOT pyvenv) to change Python versions:
#+BEGIN_SRC emacs-lisp
(use-package python-pytest
:commands (python-pytest-popup
python-pytest--current-defun)
python-pytest--current-defun)
:general
(python-mode-map "C-c t p" #'python-pytest-popup))
(python-mode-map "C-c t p" #'python-pytest-popup)
((normal motion visual) python-pytest-mode-map "g r" #'python-pytest-repeat))
#+END_SRC
And borrowing some functions from python-pytest, we can get some nosetests support as well: