From de7af256a97813d6c0bd04e53aa36401cf3f8c33 Mon Sep 17 00:00:00 2001 From: Nathaniel Nicandro Date: Mon, 16 Mar 2020 01:00:23 -0500 Subject: [PATCH] Add missing half of test * test/jupyter-test.el (org-babel-jupyter-inline-blocks): Do it. --- test/jupyter-test.el | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/test/jupyter-test.el b/test/jupyter-test.el index fcc7050..b72fefc 100644 --- a/test/jupyter-test.el +++ b/test/jupyter-test.el @@ -2800,20 +2800,27 @@ publish_display_data({'text/plain': \"foo\", 'text/latex': \"$\\alpha$\"});" :tags '(org) (ert-info ("Treat inline and non-inline results similarly") ;; #204 - (jupyter-org-test - (insert (format "\ + (let ((src (format "\ #+NAME: hello_jupyter #+BEGIN_SRC jupyter-python :results value :display plain :session %s \"hello\" #+END_SRC -" jupyter-org-test-session)) - (insert "call_hello_jupyter()") - (let ((pos (point))) - (beginning-of-line) +" jupyter-org-test-session))) + (jupyter-org-test + (insert src) + (insert "call_hello_jupyter()") + (let ((pos (point))) + (beginning-of-line) + (org-ctrl-c-ctrl-c) + (goto-char pos) + (should (looking-at-p " {{{results(=hello=)}}}")))) + (jupyter-org-test + (save-excursion (insert src)) (org-ctrl-c-ctrl-c) - (goto-char pos) - (should (looking-at-p " {{{results(=hello=)}}}")))))) + (goto-char (org-babel-where-is-src-block-result)) + (forward-line) + (should (looking-at-p ": hello")))))) ;; Local Variables: