add more tests

This commit is contained in:
lucasheld 2022-08-05 14:35:17 +02:00
parent 512057ab61
commit 01664f5fbc
6 changed files with 73 additions and 1 deletions

View file

@ -788,7 +788,7 @@ class UptimeKumaApi(object):
"newPassword": new_password,
})
def upload_backup(self, json_data, import_handle: str):
def upload_backup(self, json_data, import_handle: str = "skip"):
if import_handle not in ["overwrite", "skip", "keep"]:
raise ValueError()
return self._call('uploadBackup', (json_data, import_handle))