Followup fix...

This commit is contained in:
Tomas Groth 2019-04-13 10:24:15 +02:00
parent 41d876be52
commit f669b8cd7e
2 changed files with 2 additions and 2 deletions

View File

@ -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):
"""

View File

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