Merge Dave's fixes for the compatibility tests and web.
[jelmer/dulwich-libgit2.git] / dulwich / tests / compat / test_web.py
index 1ef6c862da955dd6949537cb323b78350132425d..5a1c038c3a26bb1c8f6bbacdc17fc3853e074c5e 100644 (file)
@@ -27,6 +27,9 @@ On *nix, you can kill the tests with Ctrl-Z, "kill %".
 import threading
 from wsgiref import simple_server
 
+from dulwich.server import (
+    DictBackend,
+    )
 from dulwich.web import (
     HTTPGitApplication,
     )
@@ -65,7 +68,8 @@ class WebTests(ServerTests):
     protocol = 'http'
 
     def _start_server(self, repo):
-        app = self._make_app(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()