Add new input_method "type"

This does the same thing as input_method "pipe" but is more clear what
it's doing (typing text into the builtin composer)
This commit is contained in:
Jonathan Wren 2022-06-11 12:15:49 -07:00
parent ac05bc67ce
commit 6d18e75559
5 changed files with 6 additions and 6 deletions

View file

@ -273,8 +273,8 @@ def stdin_input(request, is_tty):
@fixture
def is_tty(input_method):
assert input_method in ["", "enter", "pipe"]
return input_method != "pipe"
assert input_method in ["", "enter", "pipe", "type"]
return input_method not in ["pipe", "type"]
@fixture

View file

@ -21,7 +21,7 @@ def when_we_change_directory(directory_name):
# These variables are used in the `@when(re(...))` section below
command = '(?P<command>[^"]*)'
input_method = "(?P<input_method>enter|pipe)"
input_method = "(?P<input_method>enter|pipe|type)"
all_input = '("(?P<all_input>[^"]*)")'