mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 13:08:31 +02:00
Fix no stdin input test
This commit is contained in:
parent
9701401946
commit
7fbb5db5e7
2 changed files with 2 additions and 3 deletions
|
@ -28,8 +28,7 @@ Feature: Basic reading and writing to a journal
|
|||
Scenario: Writing an empty entry from the command line
|
||||
Given we use the config "basic.yaml"
|
||||
When we run "jrnl" and enter ""
|
||||
Then we should get no error
|
||||
And the output should be
|
||||
Then the output should be
|
||||
"""
|
||||
|
||||
"""
|
||||
|
|
|
@ -112,7 +112,7 @@ def run_with_input(context, command, inputs1="", inputs2=""):
|
|||
elif context.text:
|
||||
text = iter(context.text.split("\n"))
|
||||
else:
|
||||
text = ""
|
||||
text = iter(("", ""))
|
||||
args = ushlex(command)[1:]
|
||||
with patch("builtins.input", side_effect=_mock_input(text)) as mock_input:
|
||||
with patch("jrnl.util.getpass", side_effect=_mock_getpass(text)) as mock_getpass:
|
||||
|
|
Loading…
Add table
Reference in a new issue