forked from openlp/openlp
Followup fix...
This commit is contained in:
parent
41d876be52
commit
f669b8cd7e
@ -187,7 +187,7 @@ class BibleManager(LogMixin, RegistryProperties):
|
|||||||
bible = self.db_cache[name]
|
bible = self.db_cache[name]
|
||||||
bible.session.close_all()
|
bible.session.close_all()
|
||||||
bible.session = None
|
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):
|
def get_bibles(self):
|
||||||
"""
|
"""
|
||||||
|
@ -67,4 +67,4 @@ class TestManager(TestCase):
|
|||||||
assert result is True
|
assert result is True
|
||||||
mocked_close_all.assert_called_once_with()
|
mocked_close_all.assert_called_once_with()
|
||||||
assert mocked_bible.session is None
|
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')
|
||||||
|
Loading…
Reference in New Issue
Block a user