From 82c68952074dd308b3ef907430f8189258bdb074 Mon Sep 17 00:00:00 2001 From: Thomas Kosel Date: Mon, 7 Oct 2024 13:32:37 +0200 Subject: [PATCH] [FIX] zpl_printer_stock: fixing style of new test --- zpl_printer_stock/tests/zpl_printer.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/zpl_printer_stock/tests/zpl_printer.py b/zpl_printer_stock/tests/zpl_printer.py index ed64c147b00..2d3da30f2bb 100644 --- a/zpl_printer_stock/tests/zpl_printer.py +++ b/zpl_printer_stock/tests/zpl_printer.py @@ -1,5 +1,10 @@ -from odoo.tests import common, tagged -from odoo.addons.zpl_printer.tests import TestZplPrinterBase, DEFAULT_PRINTER_URL, OTHER_PRINTER_URL +from odoo.tests import tagged + +from odoo.addons.zpl_printer.tests import ( + DEFAULT_PRINTER_URL, + OTHER_PRINTER_URL, + TestZplPrinterBase, +) @tagged("zpl") @@ -9,8 +14,12 @@ class TestZplPrinterStock(TestZplPrinterBase): def setUp(self): super(TestZplPrinterStock, self).setUp() - second_printer = self.env["zpl_printer.zpl_printer"].search([("name", "=", "other_printer")]) - (unspecific_product, other_printer_product) = self.env["product.product"].create( + second_printer = self.env["zpl_printer.zpl_printer"].search( + [("name", "=", "other_printer")] + ) + (unspecific_product, other_printer_product) = self.env[ + "product.product" + ].create( [ { "name": "Unspecific Product",