ionrock / pytest-el

Run py.test on testing functions, classes, modules and entire suites in Emacs.
55 stars 26 forks source link

pytest-one complains about 'not an extant file' #18

Open patxoca opened 8 years ago

patxoca commented 8 years ago

pytest.el cloned from git

Running pytest-one complains about:

pytest-check-test-file: '/path/tests/test_module.py::TestClass::test_method' is not an extant file.

I have solved the issue changing pytest-check-test-file:

(defun pytest-check-test-file (path)
  (let ((actual-path (car (s-split "::" path))))
    (if (not (file-exists-p actual-path))
        (error (format "'%s' is not an extant file." actual-path)))))
Wilfred commented 7 years ago

Duplicate of #14 I think, which is now fixed.