Using log instead of prompt functions for test

This commit is contained in:
thuck 2016-11-24 00:05:17 +01:00
parent 8d4b55bb80
commit a254097558
2 changed files with 2 additions and 7 deletions

View File

@ -1048,7 +1048,7 @@ Feature: Tab management
And I open data/numbers/2.txt in a new tab
And I run :tab-pin
And I run :tab-close
And I wait for a prompt
And I wait for "*want to close a pinned tab*" in the log
And I run :prompt-accept yes
Then the following tabs should be open:
- data/numbers/1.txt (active)
@ -1059,7 +1059,7 @@ Feature: Tab management
And I open data/numbers/2.txt in a new tab
And I run :tab-pin
And I run :tab-close
And I wait for a prompt
And I wait for "*want to close a pinned tab*" in the log
And I run :prompt-accept no
Then the following tabs should be open:
- data/numbers/1.txt

View File

@ -19,8 +19,3 @@
import pytest_bdd as bdd
bdd.scenarios('tabs.feature')
@bdd.when("I wait for a prompt")
def wait_for_prompt(quteproc):
quteproc.wait_for(message='Asking question *')