[IMP] update dotfiles

pull/2505/head
oca-git-bot 2022-03-30 21:12:54 +02:00 committed by Aungkokolin1997
parent acd677a07c
commit 95b76b5405
3 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@ class TestXLSXImportExport(TestExcelImportExport):
super(TestExcelImportExport, cls).setUpClass() super(TestExcelImportExport, cls).setUpClass()
def test_xlsx_export_import(self): def test_xlsx_export_import(self):
""" Test Export Excel from Sales Order """ """Test Export Excel from Sales Order"""
# Create Sales Order # Create Sales Order
self.setUpSaleOrder() self.setUpSaleOrder()
# ----------- EXPORT --------------- # ----------- EXPORT ---------------
@ -62,7 +62,7 @@ class TestXLSXImportExport(TestExcelImportExport):
import_wizard.action_import() import_wizard.action_import()
def test_add_remove_export_import_action(self): def test_add_remove_export_import_action(self):
""" On the template itself, test add / remove action """ """On the template itself, test add / remove action"""
template = self.env.ref("excel_import_export_demo.sale_order_xlsx_template") template = self.env.ref("excel_import_export_demo.sale_order_xlsx_template")
self.assertTrue(template.import_action_id) self.assertTrue(template.import_action_id)
self.assertTrue(template.export_action_id) self.assertTrue(template.export_action_id)

View File

@ -11,7 +11,7 @@ class TestXLSXReport(TestExcelImportExport):
super(TestXLSXReport, cls).setUpClass() super(TestXLSXReport, cls).setUpClass()
def test_xlsx_report(self): def test_xlsx_report(self):
""" Test Report from Sales Order """ """Test Report from Sales Order"""
# Create Many Sales Orders # Create Many Sales Orders
self.setUpManySaleOrder() self.setUpManySaleOrder()
ctx = { ctx = {

View File

@ -14,7 +14,7 @@ class TestXLSXTemplate(TestExcelImportExport):
super(TestExcelImportExport, cls).setUpClass() super(TestExcelImportExport, cls).setUpClass()
def test_xlsx_template(self): def test_xlsx_template(self):
""" Test XLSX Template input and output instruction """ """Test XLSX Template input and output instruction"""
self.setUpXLSXTemplate() self.setUpXLSXTemplate()
instruction_dict = literal_eval(self.sample_template.instruction) instruction_dict = literal_eval(self.sample_template.instruction)
self.assertDictEqual( self.assertDictEqual(
@ -63,7 +63,7 @@ class TestXLSXTemplate(TestExcelImportExport):
self.assertTrue(self.sample_template.datas) # Loaded successfully self.assertTrue(self.sample_template.datas) # Loaded successfully
def test_xlsx_template_easy_reporting(self): def test_xlsx_template_easy_reporting(self):
""" Test XLSX template using easy reporting option """ """Test XLSX template using easy reporting option"""
sale_model = self.env["ir.model"].search([("model", "=", "sale.order")]) sale_model = self.env["ir.model"].search([("model", "=", "sale.order")])
# Create the template # Create the template
with Form(self.env["xlsx.template"]) as f: with Form(self.env["xlsx.template"]) as f: