Merge pull request #379 from dickmao/fix-oinfo-errors

redo the test of remote doesn't have ein
This commit is contained in:
John Miller 2018-11-02 15:54:15 -05:00 committed by GitHub
commit 17fd5c721b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View file

@ -7,7 +7,7 @@ Scenario: try autosaving
@eldoc
Scenario: not running server locally
Given I enable "ein:enable-eldoc-support"
Given I set "ein:source-dir" to "foo"
Given I fset "ein:pytools-add-sys-path" to "ignore"
Given new default notebook
And I type "import math"
And I press "C-a"

View file

@ -202,11 +202,15 @@
(f-mkdir dir)
(ein:testing-make-directory-level dir 1 (string-to-number width) (string-to-number depth))))
(When "^I set \"\\(.+\\)\" to \\(.+\\)$"
(When "^I set \"\\(.+\\)\" to \"\\(.+\\)\"$"
(lambda (variable value)
(set (intern variable) value)))
(When "^I custom set \"\\(.+\\)\" to \\(.+\\)$"
(When "^I fset \"\\(.+\\)\" to \"\\(.+\\)\"$"
(lambda (variable value)
(fset (intern variable) (function value))))
(When "^I custom set \"\\(.+\\)\" to \"\\(.+\\)\"$"
(lambda (custom-variable value)
(customize-set-value (intern custom-variable) value)))