forked from tkf/emacs-ipython-notebook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-ein-pytools.el
27 lines (23 loc) · 867 Bytes
/
test-ein-pytools.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
(require 'ert)
(when load-file-name
(add-to-list 'load-path
(concat (file-name-directory load-file-name) "mocker")))
(require 'mocker)
(require 'ein-pytools)
(require 'ein-testing-kernel)
(ert-deftest ein:pytools-finish-tooltip ()
(ein:testing-kernel-construct-help-string-loop
(lambda (content result)
(if result
(mocker-let
((featurep
(feature)
((:input '(pos-tip) :output t)))
(pos-tip-show
(string &optional tip-color pos window timeout)
((:input (list result 'ein:pos-tip-face nil nil 0)))))
(let ((window-system t))
(ein:pytools-finish-tooltip '-not-used- content '-not-used-)))
(mocker-let
((featurep (feature) ()))
(ein:pytools-finish-tooltip '-not-used- content '-not-used-))))))