From f669b8cd7eb12ee42c452e49e27903777b601ac6 Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Sat, 13 Apr 2019 10:24:15 +0200 Subject: [PATCH] Followup fix... --- openlp/plugins/bibles/lib/manager.py | 2 +- tests/functional/openlp_plugins/bibles/test_manager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openlp/plugins/bibles/lib/manager.py b/openlp/plugins/bibles/lib/manager.py index e7809f498..e40e3e1de 100644 --- a/openlp/plugins/bibles/lib/manager.py +++ b/openlp/plugins/bibles/lib/manager.py @@ -187,7 +187,7 @@ class BibleManager(LogMixin, RegistryProperties): bible = self.db_cache[name] bible.session.close_all() bible.session = None - return delete_file(bible.path) + return delete_file(bible.path / '{name}{suffix}'.format(name=name, suffix=self.suffix)) def get_bibles(self): """ diff --git a/tests/functional/openlp_plugins/bibles/test_manager.py b/tests/functional/openlp_plugins/bibles/test_manager.py index 39a693446..4a0031b52 100644 --- a/tests/functional/openlp_plugins/bibles/test_manager.py +++ b/tests/functional/openlp_plugins/bibles/test_manager.py @@ -67,4 +67,4 @@ class TestManager(TestCase): assert result is True mocked_close_all.assert_called_once_with() assert mocked_bible.session is None - mocked_delete_file.assert_called_once_with(Path('bibles'), 'KJV.sqlite') + mocked_delete_file.assert_called_once_with(Path('bibles') / 'KJV.sqlite')