Fix use of git backend.
authorJelmer Vernooij <jelmer@samba.org>
Fri, 2 Apr 2010 23:58:56 +0000 (01:58 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Fri, 2 Apr 2010 23:58:56 +0000 (01:58 +0200)
dulwich/tests/compat/test_server.py
dulwich/tests/compat/test_web.py

index a9088854e48a6309e04bdf222c69d2e9545f7b54..028768c0cc1d6d5231a54525407e480037dc31fe 100644 (file)
@@ -65,7 +65,9 @@ class GitServerTestCase(ServerTests, CompatTestCase):
         CompatTestCase.tearDown(self)
 
     def _start_server(self, repo):
-        dul_server = TCPGitServer(server.GitBackend(repo), 'localhost', 0)
+        dul_server = TCPGitServer(
+            server.DictBackend({"/": server.GitBackendRepo(repo)}),
+            'localhost', 0)
         threading.Thread(target=dul_server.serve).start()
         self._server = dul_server
         _, port = self._server.socket.getsockname()
index c30b40045e715a3ca00c0408811baf1c4ea96e19..dc036310bf5a36a9723736187ff941068141dbc9 100644 (file)
@@ -28,7 +28,7 @@ import threading
 from wsgiref import simple_server
 
 from dulwich.server import (
-    GitBackend,
+    GitBackendRepo,
     )
 from dulwich.web import (
     HTTPGitApplication,
@@ -68,7 +68,7 @@ class WebTests(ServerTests):
     protocol = 'http'
 
     def _start_server(self, repo):
-        app = self._make_app(GitBackend(repo))
+        app = self._make_app(GitBackendRepo(repo))
         dul_server = simple_server.make_server('localhost', 0, app,
                                                server_class=WSGIServer)
         threading.Thread(target=dul_server.serve_forever).start()