mirror of
https://github.com/NaN-tic/trytond-product_categories.git
synced 2023-12-14 06:52:52 +01:00
FIX tests.
We can't have two categories where the category or the parent have the unique checkbox.
This commit is contained in:
parent
8f57d3af0a
commit
1a9d2055b0
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue