示例#1
0
    def _setUp(self, allowAnon=False):
        self.config = _createDrupalAuthConfigFile(self.repoPath, allowAnon)

        self.app = Factory(self.config, self.pluginPackages)

        self.ssh = reactor.listenTCP(0, self.app.createSSHFactory())
        self.http = reactor.listenTCP(0, self.app.createHTTPFactory())
示例#2
0
    def setUp(self):
        GitTestHelper.setUp(self)

        self.config = _createDefaultConfigFile(self.repoPath)

        pluginPackages = {IRepositoryRouter: plugins}

        self.app = Factory(self.config, pluginPackages)

        self.ssh = reactor.listenTCP(0, self.app.createSSHFactory())
        self.http = reactor.listenTCP(0, self.app.createHTTPFactory())