mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 23:41:38 -05:00
Add missing half of test
* test/jupyter-test.el (org-babel-jupyter-inline-blocks): Do it.
This commit is contained in:
parent
045f2b8b42
commit
de7af256a9
1 changed files with 15 additions and 8 deletions
|
@ -2800,20 +2800,27 @@ publish_display_data({'text/plain': \"foo\", 'text/latex': \"$\\alpha$\"});"
|
||||||
:tags '(org)
|
:tags '(org)
|
||||||
(ert-info ("Treat inline and non-inline results similarly")
|
(ert-info ("Treat inline and non-inline results similarly")
|
||||||
;; #204
|
;; #204
|
||||||
(jupyter-org-test
|
(let ((src (format "\
|
||||||
(insert (format "\
|
|
||||||
#+NAME: hello_jupyter
|
#+NAME: hello_jupyter
|
||||||
#+BEGIN_SRC jupyter-python :results value :display plain :session %s
|
#+BEGIN_SRC jupyter-python :results value :display plain :session %s
|
||||||
\"hello\"
|
\"hello\"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
" jupyter-org-test-session))
|
" jupyter-org-test-session)))
|
||||||
|
(jupyter-org-test
|
||||||
|
(insert src)
|
||||||
(insert "call_hello_jupyter()")
|
(insert "call_hello_jupyter()")
|
||||||
(let ((pos (point)))
|
(let ((pos (point)))
|
||||||
(beginning-of-line)
|
(beginning-of-line)
|
||||||
(org-ctrl-c-ctrl-c)
|
(org-ctrl-c-ctrl-c)
|
||||||
(goto-char pos)
|
(goto-char pos)
|
||||||
(should (looking-at-p " {{{results(=hello=)}}}"))))))
|
(should (looking-at-p " {{{results(=hello=)}}}"))))
|
||||||
|
(jupyter-org-test
|
||||||
|
(save-excursion (insert src))
|
||||||
|
(org-ctrl-c-ctrl-c)
|
||||||
|
(goto-char (org-babel-where-is-src-block-result))
|
||||||
|
(forward-line)
|
||||||
|
(should (looking-at-p ": hello"))))))
|
||||||
|
|
||||||
|
|
||||||
;; Local Variables:
|
;; Local Variables:
|
||||||
|
|
Loading…
Add table
Reference in a new issue