Fix other unit test that did not account for short-circuit

This commit is contained in:
Micah Jerome Ellison 2023-02-18 15:14:06 -08:00 committed by Jonathan Wren
parent 8ee1632760
commit 2be80a5fa0

View file

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