From db3ec83bbf7f262212951b14bb9429fd7925423a Mon Sep 17 00:00:00 2001 From: Samar Hassan Date: Mon, 12 Aug 2024 08:21:26 +0100 Subject: [PATCH] tests :white_check_mark: add another resource with correct product class info --- tests/reverse/test_catalogue.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/reverse/test_catalogue.py b/tests/reverse/test_catalogue.py index f5e8dba..9e8bcb1 100644 --- a/tests/reverse/test_catalogue.py +++ b/tests/reverse/test_catalogue.py @@ -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):