2018-02-27 14:38:13 -06:00
|
|
|
(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 ()
|
2018-09-26 10:07:50 -04:00
|
|
|
:expected-result :failed
|
2018-02-27 14:38:13 -06:00
|
|
|
(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-))))))
|