FIX tests.

We can't have two categories where the category or the parent have the
unique checkbox.
This commit is contained in:
Juanjo Garcia 2022-07-19 16:30:12 +02:00
parent 8f57d3af0a
commit 1a9d2055b0

View file

@ -40,9 +40,9 @@ class ProductCategoriesTestCase(ModuleTestCase):
template.default_uom = uom
template.categories = [category]
self.assertRaises(Exception, Template.create, [template._save_values])
template.categories = [category, cat1, cat1a]
template.categories = [category, cat1a]
template.save()
self.assertEqual(len(template.categories), 3)
self.assertEqual(len(template.categories), 2)
@with_transaction(context={'check_categories': False})
def test_not_check_categories(self):