mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-04 07:26:14 +02:00
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:
parent
ac05bc67ce
commit
6d18e75559
5 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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>[^"]*)")'
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue