Fixed error related to display_format in config file

Now _display_search_results tries to source the export arg from the
config file before dispaying search results.
This commit is contained in:
apainintheneck 2022-06-04 10:52:49 -07:00
parent 19d579fc5c
commit 369142d641
2 changed files with 8 additions and 7 deletions

View file

@ -16,6 +16,7 @@ def test_export_format(mock_args, export_format):
test_journal = jrnl.Journal.Journal
mock_args.export = export_format
mock_args.tags = None
#fmt: off
# see: https://github.com/psf/black/issues/664
with mock.patch("builtins.print") as mock_spy_print, \