Beispiel #1
0
 def setUp(self):
     self.config = setUp()
     from adhocracy.core.models.references import child_factory
     from repoze.lemonade.testing import registerContentFactory
     registerContentFactory(child_factory, self._target_marker_interface)
     from adhocracy.core.models.references import Child
     self.config.registry.registerAdapter(Child)
     self.graph = get_graph()
 def setUp(self):
     self.config = setUp()
     from adhocracy.core.models.adhocracyroot import adhocracyroot_factory
     registerContentFactory(adhocracyroot_factory, \
                            self._target_marker_interface)
     from adhocracy.core.models.adhocracyroot\
             import AdhocracyRootLocationAware
     self.config.registry.registerAdapter(AdhocracyRootLocationAware)
     self.graph = get_graph()
 def setUp(self):
     self.config = setUp()
     from adhocracy.core.models.adhocracyroot import adhocracyroot_factory
     registerContentFactory(adhocracyroot_factory, \
                            self._target_marker_interface)
     from adhocracy.core.models.adhocracyroot\
             import AdhocracyRootLocationAware
     self.config.registry.registerAdapter(AdhocracyRootLocationAware)
     self.graph = get_graph()
 def setUp(self):
     self.config = setUp()
     from adhocracy.core.models.container import container_factory
     from repoze.lemonade.testing import registerContentFactory
     registerContentFactory(container_factory,\
                            self._target_marker_interface)
     from adhocracy.core.models.container import ContainerLocationAware
     self.config.registry.registerAdapter(ContainerLocationAware)
     from adhocracy.core.models.container import Container
     self.config.registry.registerAdapter(Container)
     self.graph = get_graph()
    def setUp(self):
        self.config = setUp()
        from repoze.lemonade.testing import registerContentFactory
        from adhocracy.core.models.references import child_factory
        from adhocracy.core.models.references import IChildMarker
        registerContentFactory(child_factory, IChildMarker)
        from adhocracy.core.models.container import container_factory
        from adhocracy.core.models.container import IContainerMarker
        registerContentFactory(container_factory, IContainerMarker)

        from adhocracy.core.models.references import Child
        self.config.registry.registerAdapter(Child)
        self.config.registry.registerAdapter(self._target_class)
        self.graph = get_graph()
    def setUp(self):
        self.config = setUp()
        from repoze.lemonade.testing import registerContentFactory
        from adhocracy.core.models.references import child_factory
        from adhocracy.core.models.references import IChildMarker
        registerContentFactory(child_factory, IChildMarker)
        from adhocracy.core.models.container import container_factory
        from adhocracy.core.models.container import IContainerMarker
        registerContentFactory(container_factory, IContainerMarker)

        from adhocracy.core.models.references import Child
        self.config.registry.registerAdapter(Child)
        self.config.registry.registerAdapter(self._target_class)
        self.graph = get_graph()