testing/lisp/test-ob-eshell.el: Fix tests

* testing/lisp/test-ob-eshell.el (ob-eshell/execute):
(ob-eshell/variables-assignment): Do not expect
`org-babel-execute-src-block' to return the actual inserted src block
string.
This commit is contained in:
Ihor Radchenko 2022-10-13 18:28:56 +08:00
parent 3790bf8ea1
commit 97672efdb0
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 8 additions and 2 deletions

View File

@ -34,7 +34,10 @@
"#+begin_src eshell
echo 2
#+end_src"
(org-babel-execute-src-block))
(org-babel-execute-src-block)
(goto-char (org-babel-where-is-src-block-result))
(forward-line)
(buffer-substring-no-properties (point) (line-end-position)))
": 2")))
(ert-deftest ob-eshell/variables-assignment ()
@ -45,7 +48,10 @@ echo 2
"#+begin_src eshell :var hi=\"hello, world\"
echo $hi
#+end_src"
(org-babel-execute-src-block))
(org-babel-execute-src-block)
(goto-char (org-babel-where-is-src-block-result))
(forward-line)
(buffer-substring-no-properties (point) (line-end-position)))
": hello, world")))
(ert-deftest ob-eshell/session ()