Skip to content

Commit 8c465b6

Browse files
committed
[IMP] product_packaging_level_salable: pre-commit auto fixes
1 parent 5b02e3d commit 8c465b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

product_packaging_level_salable/tests/test_packaging_level_can_be_sold.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ def test_onchange_product_packaging_id(self):
2929
def test_product_packaging_can_be_sold(self):
3030
"""Check that a product.packaging can be independently set as can be sold."""
3131
exception_msg = (
32-
"Packaging Test packaging cannot be sold on product {} must be set "
32+
f"Packaging Test packaging cannot be sold on product {self.product.name} must be set "
3333
"as 'Sales' in order to be used on a sale order."
34-
).format(self.product.name)
34+
)
3535
with self.assertRaisesRegex(ValidationError, exception_msg):
3636
self.order_line.write(
3737
{"product_packaging_id": self.packaging_cannot_be_sold.id}

0 commit comments

Comments
 (0)