tests/test-wireproto.py
changeset 37295 45b39c69fae0
parent 36944 65615c29e74f
child 37321 e826fe7a08c7
--- a/tests/test-wireproto.py	Wed Mar 28 10:12:02 2018 -0700
+++ b/tests/test-wireproto.py	Wed Mar 28 10:40:41 2018 -0700
@@ -13,6 +13,8 @@
 class proto(object):
     def __init__(self, args):
         self.args = args
+        self.name = 'dummyproto'
+
     def getargs(self, spec):
         args = self.args
         args.setdefault(b'*', {})
@@ -22,6 +24,11 @@
     def checkperm(self, perm):
         pass
 
+wireprototypes.TRANSPORTS['dummyproto'] = {
+    'transport': 'dummy',
+    'version': 1,
+}
+
 class clientpeer(wireproto.wirepeer):
     def __init__(self, serverrepo, ui):
         self.serverrepo = serverrepo