From b5c671c055292bf7d696200dc59aecd333eb80ec Mon Sep 17 00:00:00 2001 From: Jonathan Wren Date: Sat, 23 May 2020 12:25:04 -0700 Subject: [PATCH] fix jrnl not behaving nicely with testing suite --- features/core.feature | 2 -- jrnl/cli.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/features/core.feature b/features/core.feature index d81fa1dd..1b534fa0 100644 --- a/features/core.feature +++ b/features/core.feature @@ -33,13 +33,11 @@ Feature: Basic reading and writing to a journal When we run "jrnl -n 1" Then the output should contain "2013-07-23 09:00 A cold and stormy day." - @skip_win Scenario: Writing an empty entry from the editor Given we use the config "editor.yaml" When we open the editor and enter nothing Then we should see the message "[Nothing saved to file]" - @skip_win Scenario: Sending an argument with spaces to the editor should work Given we use the config "editor-args.yaml" When we open the editor and enter "lorem ipsum" diff --git a/jrnl/cli.py b/jrnl/cli.py index 070d134b..3a4c392e 100644 --- a/jrnl/cli.py +++ b/jrnl/cli.py @@ -197,7 +197,7 @@ def parse_args(args=None): # Handle '-123' as a shortcut for '-n 123' num = re.compile(r"^-(\d+)$") if args is None: - args = sys.argv[1:] + args = [] return parser.parse_args([num.sub(r"-n \1", a) for a in args])