[IMP] account_bank_statement_import_online_ponto: black, isort, prettier

This commit is contained in:
Ronald Portier
2021-05-28 14:29:19 +02:00
parent 93631279d9
commit cf39daaea0
3 changed files with 11 additions and 2 deletions

View File

@@ -60,7 +60,8 @@ class TestAccountBankAccountStatementImportOnlineQonto(common.TransactionCase):
return_value={"FR0214508000302245362775K46": "id"},
)
self.mock_synchronisation = lambda: mock.patch(
_provider_class + "._ponto_synchronisation", return_value=None,
_provider_class + "._ponto_synchronisation",
return_value=None,
)
self.mock_transaction = lambda: mock.patch(
@@ -144,7 +145,8 @@ class TestAccountBankAccountStatementImportOnlineQonto(common.TransactionCase):
def test_ponto(self):
with self.mock_transaction(), self.mock_header(), self.mock_synchronisation(), self.mock_account_ids(): # noqa: B950
lines, statement_values = self.provider._obtain_statement_data(
datetime(2019, 11, 3), datetime(2019, 11, 17),
datetime(2019, 11, 3),
datetime(2019, 11, 17),
)
self.assertEqual(len(lines), 3)

View File

@@ -0,0 +1 @@
../../../../account_bank_statement_import_online_ponto

View File

@@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)