Skip to content

Commit

Permalink
[FIX] zpl_printer_stock: fixing 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 017edfb
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.zpl_printer 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(

Check warning on line 17 in zpl_printer_stock/tests/zpl_printer.py

View check run for this annotation

Codecov / codecov/patch

zpl_printer_stock/tests/zpl_printer.py#L16-L17

Added lines #L16 - L17 were not covered by tests
[("name", "=", "other_printer")]
)
(unspecific_product, other_printer_product) = self.env[

Check warning on line 20 in zpl_printer_stock/tests/zpl_printer.py

View check run for this annotation

Codecov / codecov/patch

zpl_printer_stock/tests/zpl_printer.py#L20

Added line #L20 was not covered by tests
"product.product"
].create(
[
{
"name": "Unspecific Product",
Expand Down

0 comments on commit 017edfb

Please sign in to comment.