Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyasProgrammer committed Nov 3, 2023
1 parent 0593a11 commit 43c7d8f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def setUpClass(cls):
cls.val4 = val_model.create({"name": "Magnesium", "attribute_id": cls.attr2.id})
cls.pt_bicycle = pt_model.create({"name": "Bicycle"})
cls.pt_car = pt_model.create({"name": "Car"})
cls.pt_plane = pt_model.create({"name": "Plane"})

def test_all(self):
self.assertFalse(self.pt_bicycle.default_code)
Expand Down Expand Up @@ -66,3 +67,4 @@ def test_all(self):
self.assertIn(df, self.pt_car.product_variant_ids[2].default_code)
df = str(self.pt_seq.sequence_id.number_next_actual - 1) + "006"
self.assertIn(df, self.pt_car.product_variant_ids[3].default_code)
self.assertFalse(self.pt_plane.get_variant_next_default_code())

0 comments on commit 43c7d8f

Please sign in to comment.