Fix no stdin input test

This commit is contained in:
Aaron Lichtman 2019-11-18 15:34:31 +01:00
parent 9701401946
commit 7fbb5db5e7
No known key found for this signature in database
GPG key ID: 22368077DE9F9903
2 changed files with 2 additions and 3 deletions

View file

@ -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
"""
"""

View file

@ -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: