D810: tests: add interface checks for bundle, statichttp, and union peers

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Sun Sep 24 15:51:44 UTC 2017


indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  I forgot to add these when I initially wrote the test. They inherit
  from localrepo.localpeer, so they should be explicitly tested.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D810

AFFECTED FILES
  tests/test-check-interfaces.py

CHANGE DETAILS

diff --git a/tests/test-check-interfaces.py b/tests/test-check-interfaces.py
--- a/tests/test-check-interfaces.py
+++ b/tests/test-check-interfaces.py
@@ -3,10 +3,13 @@
 from __future__ import absolute_import, print_function
 
 from mercurial import (
+    bundlerepo,
     httppeer,
     localrepo,
     sshpeer,
+    statichttprepo,
     ui as uimod,
+    unionrepo,
 )
 
 def checkobject(o):
@@ -67,5 +70,8 @@
     checkobject(httppeer.httppeer(ui, 'http://localhost'))
     checkobject(localrepo.localpeer(dummyrepo()))
     checkobject(testingsshpeer(ui, 'ssh://localhost/foo'))
+    checkobject(bundlerepo.bundlepeer(dummyrepo()))
+    checkobject(statichttprepo.statichttppeer(dummyrepo()))
+    checkobject(unionrepo.unionpeer(dummyrepo()))
 
 main()



To: indygreg, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list