[IMP] auto_backup: black, isort, prettier

pull/2712/head
simonev 2021-07-23 11:08:17 +02:00 committed by tafaRU
parent fedd9384df
commit 20af5f105b
3 changed files with 6 additions and 3 deletions

View File

@ -14,7 +14,7 @@
"AdaptiveCity, "
"Odoo Community Association (OCA)",
"license": "AGPL-3",
"website": "https://github.com/OCA/server-tools/",
"website": "https://github.com/OCA/server-tools",
"category": "Tools",
"depends": ["mail"],
"data": [

View File

@ -36,7 +36,9 @@ class DbBackup(models.Model):
]
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(
default=lambda self: self._default_folder(),

View File

@ -218,7 +218,8 @@ class TestDbBackup(common.TransactionCase):
rec_id = self.new_record()
res = rec_id.sftp_connection()
self.assertEqual(
pysftp.Connection(), res,
pysftp.Connection(),
res,
)
def test_filename_default(self):