Commit 0fcbf1a1 authored by Pierre Augier's avatar Pierre Augier
Browse files

Try doctest with readonly=True

Rebased and modified by Manual Jacob.
parent ed427c559654
Pipeline #3581 passed with stage
in 15 minutes and 49 seconds
......@@ -1676,7 +1676,7 @@
>>> mockrepo.path = ''
>>> g = GitHandler(mockrepo, ui())
>>> tp = g.get_transport_and_path
>>> client, url = tp('http://fqdn.com/test.git')
>>> client, url = tp('https://github.com/schacon/hg-git.git', readonly=True)
>>> print isinstance(client, HttpGitClient)
True
>>> print url
......@@ -1680,7 +1680,7 @@
>>> print isinstance(client, HttpGitClient)
True
>>> print url
http://fqdn.com/test.git
https://github.com/schacon/hg-git.git
>>> client, url = tp('git@fqdn.com:user/repo.git')
>>> print isinstance(client, SSHGitClient)
True
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment