mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-05 17:11:41 -05:00
34 lines
1 KiB
Gherkin
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'"
|