Skip to content

Commit

Permalink
tests ✅ add another resource with correct product class info
Browse files Browse the repository at this point in the history
  • Loading branch information
samar-hassan committed Aug 12, 2024
1 parent 2b3c43f commit db3ec83
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/reverse/test_catalogue.py
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,18 @@ def test_product_import_with_non_existent_product_class(self):
slug="better",
),
),
ProductResource(
upc="testing",
title="Testing",
slug="testing",
structure=Product.STANDALONE,
product_class=ProductClassResource(
name="Nice",
slug="nice",
requires_shipping=True,
track_stock=True,
),
),
]
# i.e, ProductClass with slug="better" not found.
with self.assertRaises(Exception):
Expand Down

0 comments on commit db3ec83

Please sign in to comment.