commit 751caad20387c55ae8dc3f7cfa8f638a4d2d3ad5
parent ca3292a81732a63eea22b450180acdc9b3a10a90
Author: Wilfred Hughes <me@wilfred.me.uk>
Date: Sun, 13 Jan 2019 18:50:40 +0000
Ensure helpful--definition-buffer-opened skips when appropriate
This test depends on what buffers are currently open in the active
Emacs instance, so can fail when running the test suite whilst
developing.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/test/helpful-unit-test.el b/test/helpful-unit-test.el
@@ -330,6 +330,8 @@ variables defined without `defvar'."
(require 'python)
;; This test will fail if you already have python.el.gz open in your
;; Emacs instance.
+ (skip-unless (null (get-buffer "python.el.gz")))
+
(-let [(buf pos opened) (helpful--definition 'python-indent-offset nil)]
(should (bufferp buf))
(should opened)))