emacs-ipython-notebook/features/connect.feature
dickmao bcf1c2ac55 purge
purge

align pm:get-span no major mode error with diagnostic

purge
2019-11-08 16:05:11 -05:00

34 lines
1 KiB
Gherkin

@connect
Scenario: Test shared eval
Given new python notebook
When I open temp file "connect.py"
And I switch to buffer like "connect.py"
And I connect to default notebook
And I evaluate the python code "1+1"
And I switch to buffer like "*ein:shared-output*"
And I wait for buffer to say "2"
@connect
Scenario: Connect buffer to a running notebook
Given new python notebook
When I open temp file "connect.py"
And I switch to buffer like "connect.py"
And I connect to default notebook
And I type "import math"
And I press "RET"
And I type "import itertools"
And I press "RET"
And I press "RET"
And I type "def test01():"
And I press "RET"
And I press "TAB"
And I type "return 'hello'"
And I press "RET"
And I press "RET"
And I call "ein:connect-eval-buffer"
And I switch to log expr "ein:log-all-buffer-name"
And I wait for buffer to say "test01"
And I switch to buffer like "Untitled"
And I evaluate the python code "test01()"
And I switch to buffer like "*ein:shared-output*"
And I wait for buffer to say "'hello'"