Fix refactor and tests

This commit is contained in:
Lipu Fei 2018-09-28 12:33:16 +02:00
parent 6e46772170
commit 3a01b63343
3 changed files with 17 additions and 10 deletions

View file

@ -23,7 +23,7 @@ class BackupsManager:
# containing some metadata (like version).
def createBackup(self) -> Tuple[Optional[bytes], Optional[Dict[str, str]]]:
self._disableAutoSave()
backup = Backup()
backup = Backup(self._application)
backup.makeFromCurrent()
self._enableAutoSave()
# We don't return a Backup here because we want plugins only to interact with our API and not full objects.