add more tests
This commit is contained in:
parent
512057ab61
commit
01664f5fbc
6 changed files with 73 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue