bdd: Add test for exception with :pyeval.
This commit is contained in:
parent
03ebdfd641
commit
fc755c104b
@ -323,7 +323,7 @@ def check_contents(quteproc, filename):
|
|||||||
def check_contents(quteproc, text):
|
def check_contents(quteproc, text):
|
||||||
"""Check the current page's content."""
|
"""Check the current page's content."""
|
||||||
content = quteproc.get_content().strip()
|
content = quteproc.get_content().strip()
|
||||||
assert content == text
|
assert text in content
|
||||||
|
|
||||||
|
|
||||||
@bdd.then(bdd.parsers.parse("the following tabs should be open:\n{tabs}"))
|
@bdd.then(bdd.parsers.parse("the following tabs should be open:\n{tabs}"))
|
||||||
|
@ -299,6 +299,11 @@ Feature: Various utility commands.
|
|||||||
And I wait until qute:pyeval is loaded
|
And I wait until qute:pyeval is loaded
|
||||||
Then the page should contain the plaintext "2"
|
Then the page should contain the plaintext "2"
|
||||||
|
|
||||||
|
Scenario: Causing exception in :pyeval
|
||||||
|
When I run :debug-pyeval 1/0
|
||||||
|
And I wait until qute:pyeval is loaded
|
||||||
|
Then the page should contain the plaintext "ZeroDivisionError"
|
||||||
|
|
||||||
Scenario: Running :pyeval with --quiet
|
Scenario: Running :pyeval with --quiet
|
||||||
When I run :debug-pyeval --quiet 1+1
|
When I run :debug-pyeval --quiet 1+1
|
||||||
Then "pyeval output: 2" should be logged
|
Then "pyeval output: 2" should be logged
|
||||||
|
Loading…
Reference in New Issue
Block a user