Skip to content

Commit

Permalink
[REF] sale_mrp_bom: tiny refactoring in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rrebollo committed Nov 6, 2024
1 parent 5c1df75 commit e5c08d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sale_mrp_bom/tests/test_sale_mrp_bom.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def prepare_so(self):
return so, bom_a_v2, bom_b_v2

def test_define_bom_in_sale_line(self):
"""Check manufactured order is created with BOM definied in Sale."""
"""Check manufactured order is created with BOM defined in Sale."""
so, bom_a, bom_b = self.prepare_so()

# Check manufacture order
Expand All @@ -59,7 +59,7 @@ def test_mismatch_product_variant_ids(self):
line_a = so.order_line[0]
self.assertEqual(line_a.bom_id, bom_a)
with self.assertRaises(ValidationError):
line_a.write({"bom_id": bom_b})
line_a.bom_id = bom_b

def test_accept_bom_with_no_variant(self):
# make variants for template of product A
Expand Down

0 comments on commit e5c08d4

Please sign in to comment.