Initial pytest

This commit is contained in:
Edmund Miller 2018-11-22 12:53:08 -06:00
parent abc7ca84d8
commit ba49765358
No known key found for this signature in database
GPG key ID: BD387FF7BC10AA9D
2 changed files with 13 additions and 0 deletions

View file

@ -110,6 +110,18 @@
:n "O" #'nosetests-pdb-one
:n "V" #'nosetests-pdb-module))
(def-package! python-pytest
:commands pytest-mode
:preface (defvar pytest-mode-map (make-sparse-keymap))
:init (associate! pytest-mode :match "/test_.+\\.py$" :modes (python-mode))
(set-yas-minor-mode! 'pytest-mode)
(when (featurep 'evil)
(add-hook 'pytest-mode-hook #'evil-normalize-keymaps))
(map! :map nose-mode-map
:localleader
:prefix "t"
:n "r" #'nosetests-again))
;;
;; Environment management