Eric Larson  committed dfce4db

Added customize support

  • Participants
  • Parent commits 00c74ad

Comments (0)

Files changed (1)

 ;;             (local-set-key "\C-cpm" 'pytest-pdb-module)
 ;;             (local-set-key "\C-cp." 'pytest-pdb-one)))
-(defvar pytest-project-names '(""))
-(defvar pytest-project-root-files '("" ".hg" ".git"))
-(defvar pytest-project-root-test 'pytest-project-root)
-(defvar pytest-global-name "pytest")
-(defvar pytest-cmd-flags "-x")
+(defcustom pytest-project-names '("")
+  "The name of the script that starts the tests")
+(defcustom pytest-project-root-files '("" ".hg" ".git")
+  "Names of files or directories that signify the root of a
+  project")
+(defcustom pytest-project-root-test 'pytest-project-root
+  "A function used to determine the directory the tests will be
+  run from.")
+(defcustom pytest-global-name "pytest"
+  "The name of the py.test executable")
+(defcustom pytest-cmd-flags "-x"
+  "These are the flags passed to the pytest runner")
 (defun run-pytest (&optional tests debug failed)
   "run pytest"
    (let ((result
           (reduce '(lambda (x y) (or x y))
-        (mapcar 'pytest-find-test-runner-names pytest-project-names))))
+		  (mapcar 'pytest-find-test-runner-names pytest-project-names))))
      (if result