From 2be80a5fa00f6ef42c46ae78bc36460382cca79d Mon Sep 17 00:00:00 2001 From: Micah Jerome Ellison Date: Sat, 18 Feb 2023 15:14:06 -0800 Subject: [PATCH] Fix other unit test that did not account for short-circuit --- tests/unit/test_controller.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_controller.py b/tests/unit/test_controller.py index 39b8ddf7..c6c1b4d8 100644 --- a/tests/unit/test_controller.py +++ b/tests/unit/test_controller.py @@ -42,7 +42,9 @@ def test_display_search_results_builtin_plugins( test_filename = random_string mock_args = parse_args(["--format", export_format, "--file", test_filename]) - test_journal = mock.Mock(wraps=jrnl.journals.Journal) + test_journal = jrnl.journals.Journal() + test_journal.new_entry("asdf") + mock_export = mock.Mock() mock_exporter.return_value.export = mock_export