Commit 96bfc618 authored by Ivan Tyagov's avatar Ivan Tyagov

Meta data discovery uses subordination through Career rather than Assignments.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38663 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c876ac62
......@@ -1415,10 +1415,10 @@ class TestIngestion(ERP5TypeTestCase):
contribution_tool = getToolByName(portal, 'portal_contributions')
# create an user to simulate upload from him
user = self.createUser(reference='contributor1')
assignment = self.createUserAssignment(user, \
dict(group='anybody',
function='function/musician/wind/saxophone',
site='site/arctic/spitsbergen'))
organisation = self.portal.organisation_module.newContent(**dict(group='anybody',
site='site/arctic/spitsbergen'))
user.setSubordinationValue(organisation)
portal.document_module.manage_setLocalRoles('contributor1', ['Assignor',])
self.stepTic()
file_object = makeFileUpload('TEST-en-002.doc')
......@@ -1426,7 +1426,6 @@ class TestIngestion(ERP5TypeTestCase):
document.discoverMetadata(document.getSourceReference(), 'contributor1')
self.stepTic()
self.assertEquals(document.getSourceReference(), 'TEST-en-002.doc')
self.assertEquals('function/musician/wind/saxophone', document.getFunction())
self.assertEquals('anybody', document.getGroup())
self.assertEquals('site/arctic/spitsbergen', document.getSite())
......
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