TestInvoiceMixin overrides afterSetup of TestOrderMixin, but forgot to set...

TestInvoiceMixin overrides afterSetup of TestOrderMixin, but forgot to set some categories used by the latter

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45135 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9b1a8f95
...@@ -86,6 +86,8 @@ class TestInvoiceMixin(TestPackingListMixin): ...@@ -86,6 +86,8 @@ class TestInvoiceMixin(TestPackingListMixin):
@UnrestrictedMethod @UnrestrictedMethod
def createCategories(self): def createCategories(self):
"""Create the categories for our test. """ """Create the categories for our test. """
# pull in the TestOrderMixin categories first
super(TestInvoiceMixin, self).createCategories()
for cat_string in self.getNeededCategoryList() : for cat_string in self.getNeededCategoryList() :
base_cat = cat_string.split("/")[0] base_cat = cat_string.split("/")[0]
path = self.getPortal().portal_categories[base_cat] path = self.getPortal().portal_categories[base_cat]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment