[IMP] auto_backup: black, isort, prettier
parent
fedd9384df
commit
20af5f105b
|
@ -14,7 +14,7 @@
|
||||||
"AdaptiveCity, "
|
"AdaptiveCity, "
|
||||||
"Odoo Community Association (OCA)",
|
"Odoo Community Association (OCA)",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"website": "https://github.com/OCA/server-tools/",
|
"website": "https://github.com/OCA/server-tools",
|
||||||
"category": "Tools",
|
"category": "Tools",
|
||||||
"depends": ["mail"],
|
"depends": ["mail"],
|
||||||
"data": [
|
"data": [
|
||||||
|
|
|
@ -36,7 +36,9 @@ class DbBackup(models.Model):
|
||||||
]
|
]
|
||||||
|
|
||||||
name = fields.Char(
|
name = fields.Char(
|
||||||
compute="_compute_name", store=True, help="Summary of this backup process",
|
compute="_compute_name",
|
||||||
|
store=True,
|
||||||
|
help="Summary of this backup process",
|
||||||
)
|
)
|
||||||
folder = fields.Char(
|
folder = fields.Char(
|
||||||
default=lambda self: self._default_folder(),
|
default=lambda self: self._default_folder(),
|
||||||
|
|
|
@ -218,7 +218,8 @@ class TestDbBackup(common.TransactionCase):
|
||||||
rec_id = self.new_record()
|
rec_id = self.new_record()
|
||||||
res = rec_id.sftp_connection()
|
res = rec_id.sftp_connection()
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
pysftp.Connection(), res,
|
pysftp.Connection(),
|
||||||
|
res,
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_filename_default(self):
|
def test_filename_default(self):
|
||||||
|
|
Loading…
Reference in New Issue