Commit af7d75ac authored by Nicolas Delaby's avatar Nicolas Delaby

Portal contributions is embedded by erp5_ingestion which is not installed.

Create a document as a Embedded File of an organisation.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44772 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b2d6a4b0
......@@ -1086,10 +1086,11 @@ class TestBase(ERP5TypeTestCase, ZopeTestCase.Functional):
def __init__(self, filename):
self.filename = os.path.basename(filename)
file.__init__(self, filename)
file_document = self.portal.portal_contributions.newContent(
portal_type='File',
file=DummyFile(__file__),
content_type='text/plain')
portal = self.getPortal()
organisation = portal.organisation_module.newContent(portal_type='Organisation')
file_document = organisation.newContent(portal_type='Embedded File',
file=DummyFile(__file__),
content_type='text/plain')
# login as a member
uf = self.portal.acl_users
......
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