Commit 4dff2847 authored by Jérome Perrin's avatar Jérome Perrin

projects do not have group category


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32342 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bcd7675f
...@@ -446,7 +446,7 @@ class TestInventory(InventoryAPITestCase): ...@@ -446,7 +446,7 @@ class TestInventory(InventoryAPITestCase):
def test_ProjectCategory(self): def test_ProjectCategory(self):
"""Tests inventory on project category""" """Tests inventory on project category"""
# this test uses unrealistic data # this test uses unrealistic data
self.project.setGroup('level1/level2') self.project.setSource('group/level1/level2')
self._makeMovement(quantity=100, destination_project_value=self.project) self._makeMovement(quantity=100, destination_project_value=self.project)
self.getInventoryEquals(100, project_category='group/level1') self.getInventoryEquals(100, project_category='group/level1')
...@@ -455,7 +455,7 @@ class TestInventory(InventoryAPITestCase): ...@@ -455,7 +455,7 @@ class TestInventory(InventoryAPITestCase):
def test_ProjectCategoryStrictMembership(self): def test_ProjectCategoryStrictMembership(self):
"""Tests inventory on project category strict membership""" """Tests inventory on project category strict membership"""
# this test uses unrealistic data # this test uses unrealistic data
self.project.setGroup('level1/level2') self.project.setSource('group/level1/level2')
self._makeMovement(quantity=100, destination_project_value=self.project) self._makeMovement(quantity=100, destination_project_value=self.project)
self.getInventoryEquals(0, self.getInventoryEquals(0,
......
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