# HG changeset patch # User Sean Farley # Date 1511828125 18000 # Node ID c64b73b9783f24249d7eae77446a6e2d717f7022 # Parent 60a82693d43cb7eec816994ae2dae68deb2fe20f git_handler: fix doctests diff -r 60a82693d43c -r c64b73b9783f hggit/git_handler.py --- a/hggit/git_handler.py Thu Nov 30 14:49:06 2017 -0800 +++ b/hggit/git_handler.py Mon Nov 27 19:15:25 2017 -0500 @@ -649,8 +649,10 @@ >>> from collections import namedtuple >>> from mercurial.ui import ui - >>> mockrepo = namedtuple('localrepo', ['vfs']) + >>> mockrepo = namedtuple('localrepo', ['vfs', 'sharedpath', 'path']) >>> mockrepo.vfs = '' + >>> mockrepo.sharedpath = '' + >>> mockrepo.path = '' >>> g = GitHandler(mockrepo, ui()).get_valid_git_username_email >>> g('John Doe') 'John Doe' @@ -1694,8 +1696,10 @@ >>> from collections import namedtuple >>> from dulwich.client import HttpGitClient, SSHGitClient >>> from mercurial.ui import ui - >>> mockrepo = namedtuple('localrepo', ['vfs']) + >>> mockrepo = namedtuple('localrepo', ['vfs', 'sharedpath', 'path']) >>> mockrepo.vfs = '' + >>> mockrepo.sharedpath = '' + >>> mockrepo.path = '' >>> g = GitHandler(mockrepo, ui()) >>> client, url = g.get_transport_and_path('http://fqdn.com/test.git') >>> print isinstance(client, HttpGitClient)