Mercurial > hg-stable
changeset 34314:afcbc6f64d27
tests: add interface checks for bundle, statichttp, and union peers
I forgot to add these when I initially wrote the test. They inherit
from localrepo.localpeer, so they should be explicitly tested.
Differential Revision: https://phab.mercurial-scm.org/D810
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 18 Aug 2017 20:20:38 -0700 |
parents | bd50aa1aa035 |
children | 9bd003052d55 |
files | tests/test-check-interfaces.py |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-check-interfaces.py Sat Sep 23 13:46:12 2017 -0700 +++ b/tests/test-check-interfaces.py Fri Aug 18 20:20:38 2017 -0700 @@ -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()