emacs-ipython-notebook/test/test-ein-ob.el
dickmao 3ba5548208 Issue #355 - remove an endless loop
Remove a waiting for godot loop in `ob-ein`.
Add a test stub for ob-ein.
2018-10-21 14:44:11 -04:00

26 lines
582 B
EmacsLisp
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(eval-when-compile (require 'cl))
(require 'ert)
(require 'ob-ein)
;; Test utils
;;; This is the content portion of a response fromt he content API.
(defvar eintest:ob-src-block
"#+BEGIN_SRC ein :session 8888/Untitled.ipynb
import sys
a = 14500
b = a+1000
sys.version
#+END_SRC
")
(ert-deftest ein:ob-aware ()
(let ((org-babel-load-languages (quote ((ipython . t) (ein . t)))))
(with-temp-buffer
(save-excursion
(org-mode)
(insert eintest:ob-src-block)
(search-backward "SRC")
(should (call-interactively #'org-edit-special))))))