Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
This configuration should be used effectively only during unit tests

src/z/o/Zope-HEAD/src/Products/ZODBMountPoint/tests/testMountPoint.py   Zope(Download)
                mount_points[point] = name
        conf = DBTab(mount_factories, mount_points)
        d = App.config.DefaultConfiguration()
        d.dbtab = conf
        App.config.setConfiguration(d)

src/p/r/Products.ExternalMethod-2.13.0/src/Products/ExternalMethod/tests/testExternalMethod.py   Products.ExternalMethod(Download)
    def setUp(self):
        self._old = App.config.getConfiguration()
        cfg = App.config.DefaultConfiguration()
        cfg.instancehome = os.path.dirname(
            Products.ExternalMethod.tests.__file__)

src/z/o/Zope2-2.13.22/src/Products/ZODBMountPoint/tests/testMountPoint.py   Zope2(Download)
                mount_points[point] = name
        conf = DBTab(mount_factories, mount_points)
        d = App.config.DefaultConfiguration()
        d.dbtab = conf
        App.config.setConfiguration(d)