Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(58) | Call(39) | Derive(0) | Import(19)
src/a/r/archetypes.schematuning-1.2/src/archetypes/schematuning/tests/test_update_schema.py archetypes.schematuning(Download)
from Products.Archetypes.ArchetypeTool import registerType from Products.Archetypes.atapi import * from Products.Archetypes.tests.utils import mkDummyInContext from archetypes.schematuning.tests.base import SchemaTuningTestCase
# our classes and adds a copy of the schema. self._dummy1 = mkDummyInContext( Dummy1, oid='dummy1', context=self.portal, schema=schema1) self._dummy2 = mkDummyInContext( Dummy2, oid='dummy2', context=self.portal, schema=schema2)
src/a/r/archetypes.schematuning-1.2/src/archetypes/schematuning/tests/test_fields.py archetypes.schematuning(Download)
from Products.Archetypes.tests.atsitetestcase import portal_name from Products.Archetypes.tests.utils import PACKAGE_HOME from Products.Archetypes.tests.utils import mkDummyInContext from archetypes.schematuning.tests.base import SchemaTuningTestCase
def afterSetUp(self): self.setRoles(['Manager']) SchemaTuningTestCase.afterSetUp(self) self._dummy = mkDummyInContext(Dummy, oid='dummy', context=self.portal, schema=schema)
SchemaTuningTestCase.afterSetUp(self) self.dummy = mkDummyInContext( Dummy, oid='dummy', context=self.portal, schema=schema) self.field = self.dummy.getField('textfield') ptpath = PortalTransforms.__path__[0]
src/a/r/archetypes.schematuning-1.2/src/archetypes/schematuning/at_tests/test_fields.py archetypes.schematuning(Download)
from Products.Archetypes.tests.atsitetestcase import ATSiteTestCase from Products.Archetypes.tests.atsitetestcase import portal_name from Products.Archetypes.tests.utils import mkDummyInContext from Products.Archetypes.tests.utils import PACKAGE_HOME
def afterSetUp(self): self.setRoles(['Manager']) ATSiteTestCase.afterSetUp(self) self._dummy = mkDummyInContext(Dummy, oid='dummy', context=self.portal, schema=schema)
ATSiteTestCase.afterSetUp(self) self.dummy = mkDummyInContext( Dummy, oid='dummy', context=self.portal, schema=schema) self.field = self.dummy.getField('textfield') ptpath = PortalTransforms.__path__[0]
src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/tests/test_baseobject.py Products.Archetypes(Download)
from Products.Archetypes.tests.atsitetestcase import ATSiteTestCase from Products.Archetypes.tests.utils import mkDummyInContext from Products.Archetypes import PloneMessageFactory as _
def afterSetUp(self): ATSiteTestCase.afterSetUp(self) self._dummy = mkDummyInContext(Dummy, oid='dummy', context=self.portal, schema=schema)
src/p/r/Products.Archetypes-HEAD/Products/Archetypes/tests/test_baseobject.py Products.Archetypes(Download)
from Products.Archetypes.tests.atsitetestcase import ATSiteTestCase from Products.Archetypes.tests.utils import mkDummyInContext from Products.Archetypes import PloneMessageFactory as _
def afterSetUp(self): ATSiteTestCase.afterSetUp(self) self._dummy = mkDummyInContext(Dummy, oid='dummy', context=self.portal, schema=schema)
src/c/o/collective.synchro-1.0.2/collective/synchro/tests.py collective.synchro(Download)
# To install Dummy content type from Products.Archetypes.Extensions.utils import installTypes from Products.Archetypes.tests.utils import mkDummyInContext from transaction import commit
def create_fss_content(self, id): self.portal.invokeFactory('Folder','folderfss') mkDummyInContext(DummyContent, oid=id, context=self.portal['folderfss'], schema = schema) doc = self.portal['folderfss'][id] doc.update(**{'file':StringIO('text')}) mkDummyInContext(DummyContent,
src/p/r/Products.PloneArticle-4.2.0/Products/PloneArticle/tests/test_innercontentfield.py Products.PloneArticle(Download)
# Archetypes imports from Products.Archetypes.tests.utils import mkDummyInContext from Products.Archetypes.tests.test_fields import FakeRequest as BaseRequest #from zope.publisher.browser import TestRequest
def afterSetUp(self): self.setRoles(['Manager']) self._dummy = mkDummyInContext(Dummy, oid='dummy', context=self.portal, schema=schema)
src/p/l/plone.app.event-1.2.4/plone/app/event/at/tests/test_upgrades.py plone.app.event(Download)
from Products.ATContentTypes.content.schemata import ATContentTypeSchema from Products.ATContentTypes.interfaces.event import IATEvent from Products.Archetypes import atapi from Products.Archetypes.BaseContent import BaseContent from Products.Archetypes.tests.utils import mkDummyInContext
def test_upgrade_step_1(self): _dummy_1 = mkDummyInContext(MockATEvent_1, oid='dummy_1', context=self.portal, schema=ATContentTypeSchema) _dummy_1.title = 'Foo'
src/p/r/Products.PloneArticle-4.2.0/Products/PloneArticle/tests/test_innercontentproxy.py Products.PloneArticle(Download)
# Archetypes imports from Products.Archetypes.tests.utils import mkDummyInContext from Products.Archetypes.tests.test_fields import Dummy from Products.Archetypes.public import Schema, FileField, ImageField, \
Previous 1 | 2