mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-05 17:11:41 -05:00

* ein-ac: Fail silently for unexpected ein:completion-backend values. Fixes #608, though we really need a test cases for completion in polymode. * Only define ein ac-sources when the user explicitly sets the backend. * Test case for issue #608. * Only test jedi completion when testing polymode. * Add epc dependency for emacs-jedi. * Flanging up with travis is always a challenge. * Forgot to update the scenario. * Give jedi time to install. * Add virtualenv to travis OS X build. Also add some addition TOX environments for future testing cases. * OS X travis is failing - is it a timeout issue?
50 lines
1.3 KiB
Gherkin
50 lines
1.3 KiB
Gherkin
@poly
|
|
Scenario: selection spans cells
|
|
Given new python notebook
|
|
And I press "C-c C-b"
|
|
And I press "C-<up>"
|
|
And I press "C-p"
|
|
And I press "C-SPC"
|
|
And I press "C-n"
|
|
And I press "C-n"
|
|
And I press "C-n"
|
|
And I press "C-n"
|
|
Then newlined region should be "In [ ]:\n\n\nIn [ ]:\n"
|
|
And I press "C-g"
|
|
Then the region should not be active
|
|
|
|
@poly
|
|
Scenario: markdown often erroneously fontifies the whole buffer
|
|
Given new python notebook
|
|
And I press "C-c C-t"
|
|
And I type "# Header"
|
|
And I press "RET"
|
|
And I press "C-p"
|
|
And I press "C-p"
|
|
And I press "C-e"
|
|
Then text property at point includes "rear-nonsticky"
|
|
|
|
@poly
|
|
Scenario: moving cells requires refontification
|
|
Given new python notebook
|
|
And I press "C-c C-t"
|
|
And I type "# Header"
|
|
And I press "RET"
|
|
And I press "C-c C-b"
|
|
And I type "import math"
|
|
And I press "C-c C-c"
|
|
And I press "M-<up>"
|
|
And I press "C-<down>"
|
|
And I go to word "Header"
|
|
|
|
@poly-complete
|
|
Scenario: completion in polymode notebook
|
|
Given I set "ein:completion-backend" to eval "(quote ein:use-none-backend)"
|
|
Given jedi completion environment
|
|
Given new python notebook
|
|
And I type "import itertools"
|
|
And I press "RET"
|
|
And I type "itertools.chai"
|
|
And I call "jedi:complete"
|
|
And I wait for the smoke to clear
|
|
Then jedi completions should contain "chain"
|