mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +02:00
Fix local config overwrite when running pytest bdd
Co-authored-by: Jonathan Wren <jonathan@nowandwren.com>
This commit is contained in:
parent
7e6dd354cf
commit
f686e2b9f0
1 changed files with 3 additions and 2 deletions
|
@ -98,8 +98,9 @@ def we_run(command, config_path, user_input, cli_run, capsys):
|
||||||
with \
|
with \
|
||||||
patch("sys.argv", ['jrnl'] + args), \
|
patch("sys.argv", ['jrnl'] + args), \
|
||||||
patch("sys.stdin.read", return_value=user_input) as mock_read, \
|
patch("sys.stdin.read", return_value=user_input) as mock_read, \
|
||||||
patch("jrnl.install.get_config_path", return_value=config_path) \
|
patch("jrnl.install.get_config_path", return_value=config_path), \
|
||||||
:
|
patch("jrnl.config.get_config_path", return_value=config_path) \
|
||||||
|
: # @TODO: single point of truth for get_config_path (move from all calls from install to config)
|
||||||
try:
|
try:
|
||||||
cli(args)
|
cli(args)
|
||||||
except SystemExit as e:
|
except SystemExit as e:
|
||||||
|
|
Loading…
Add table
Reference in a new issue