From ff5513f630088c929cae522fafd6f9a7dd5e8ad7 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Fri, 16 Oct 2015 17:33:33 +0100 Subject: [PATCH] add test --- tests/functional/openlp_core_ui/test_mainwindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/functional/openlp_core_ui/test_mainwindow.py b/tests/functional/openlp_core_ui/test_mainwindow.py index b912d488a..440fd275c 100644 --- a/tests/functional/openlp_core_ui/test_mainwindow.py +++ b/tests/functional/openlp_core_ui/test_mainwindow.py @@ -71,7 +71,7 @@ class TestMainWindow(TestCase, TestMixin): with patch('openlp.core.ui.servicemanager.ServiceManager.load_file') as mocked_load_path: # WHEN the argument is processed - self.main_window.open_cmd_line_files() + self.main_window.open_cmd_line_files(service) # THEN the service from the arguments is loaded mocked_load_path.assert_called_with(service), 'load_path should have been called with the service\'s path' @@ -86,7 +86,7 @@ class TestMainWindow(TestCase, TestMixin): with patch('openlp.core.ui.servicemanager.ServiceManager.load_file') as mocked_load_path: # WHEN the argument is processed - self.main_window.open_cmd_line_files() + self.main_window.open_cmd_line_files("") # THEN the file should not be opened assert not mocked_load_path.called, 'load_path should not have been called'