Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
galaunay committed Oct 17, 2019
1 parent da84a5d commit c9eb63b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/elpy-rpc-reinstall-venv-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@
(should-not (file-exists-p (concat
(file-name-as-directory rpc-venv-path)
"additional-file")))
(should (string= messages "Are you sure you want to reinstall the virtualenv in '/home/glaunay/.virtualenvs/elpy-test-venv' (every manual modifications will be lost) ? `elpy-rpc-virtualenv-path' was set to '/home/glaunay/.virtualenvs/elpy-test-venv', but this virtualenv does not exist, create it ? Automatically install the RPC dependencies from PyPI (needed for completion, autoformatting and documentation) ? ")))))))
(should (string-match "Are you sure you want to reinstall the virtualenv in '[^']*' (every manual modifications will be lost) ? `elpy-rpc-virtualenv-path' was set to '[^']*', but this virtualenv does not exist, create it ? Automatically install the RPC dependencies from PyPI (needed for completion, autoformatting and documentation) ? " messages)))))))
2 changes: 1 addition & 1 deletion test/test-helper.el
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
(mletf* ((y-or-n-p (&rest rest) t))
(elpy-config)
(with-current-buffer "*Elpy Config*"
(print (buffer-string))))
(message (buffer-substring-no-properties (point-min) (point-max)))))

(defmacro with-temp-dir (name &rest body)
"Create a temporary directory and bind the symbol NAME to the path.
Expand Down

0 comments on commit c9eb63b

Please sign in to comment.