Skip to content

Commit

Permalink
[FIX] zpl_printer_stock: fixing style of new test
Browse files Browse the repository at this point in the history
  • Loading branch information
mohs8421 committed Oct 7, 2024
1 parent d50552b commit 82c6895
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions zpl_printer_stock/tests/zpl_printer.py
Original file line number Diff line number Diff line change
@@ -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")
Expand All @@ -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",
Expand Down

0 comments on commit 82c6895

Please sign in to comment.