Merge Dave's fixes for the compatibility tests and web.
[jelmer/dulwich-libgit2.git] / dulwich / tests / compat / test_web.py
index c30b40045e715a3ca00c0408811baf1c4ea96e19..5a1c038c3a26bb1c8f6bbacdc17fc3853e074c5e 100644 (file)
@@ -28,7 +28,7 @@ import threading
 from wsgiref import simple_server
 
 from dulwich.server import (
-    GitBackend,
+    DictBackend,
     )
 from dulwich.web import (
     HTTPGitApplication,
@@ -68,7 +68,8 @@ class WebTests(ServerTests):
     protocol = 'http'
 
     def _start_server(self, repo):
-        app = self._make_app(GitBackend(repo))
+        backend = DictBackend({'/': repo})
+        app = self._make_app(backend)
         dul_server = simple_server.make_server('localhost', 0, app,
                                                server_class=WSGIServer)
         threading.Thread(target=dul_server.serve_forever).start()