Adding upstream version 0.16.5.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
6e615d8555
commit
5416a64f41
6 changed files with 43 additions and 11 deletions
|
@ -130,12 +130,12 @@ class TestLsLl:
|
|||
[
|
||||
(
|
||||
PATH_FNAME,
|
||||
"repo1 cmaster [dsu] \x1b[0m msg \nrepo2 cmaster [dsu] \x1b[0m msg \nxxx cmaster [dsu] \x1b[0m msg \n",
|
||||
"repo1 cmaster [dsu] \x1b[0m msg \nrepo2 cmaster [dsu] \x1b[0m msg \nxxx cmaster [dsu] \x1b[0m msg \n",
|
||||
),
|
||||
(PATH_FNAME_EMPTY, ""),
|
||||
(
|
||||
PATH_FNAME_CLASH,
|
||||
"repo1 cmaster [dsu] \x1b[0m msg \nrepo2 cmaster [dsu] \x1b[0m msg \n",
|
||||
"repo1 cmaster [dsu] \x1b[0m msg \nrepo2 cmaster [dsu] \x1b[0m msg \n",
|
||||
),
|
||||
],
|
||||
)
|
||||
|
@ -186,6 +186,7 @@ def test_clone_with_url(mock_run):
|
|||
args.preserve_path = None
|
||||
args.directory = "/home/xxx"
|
||||
args.from_file = False
|
||||
args.dry_run = False
|
||||
__main__.f_clone(args)
|
||||
cmds = ["git", "clone", args.clonee]
|
||||
mock_run.assert_called_once_with(cmds, cwd=args.directory)
|
||||
|
@ -204,6 +205,7 @@ def test_clone_with_config_file(*_):
|
|||
args.preserve_path = False
|
||||
args.directory = None
|
||||
args.from_file = True
|
||||
args.dry_run = False
|
||||
__main__.f_clone(args)
|
||||
mock_run = utils.run_async.mock
|
||||
assert mock_run.call_count == 1
|
||||
|
@ -224,6 +226,7 @@ def test_clone_with_preserve_path(*_):
|
|||
args.directory = None
|
||||
args.from_file = True
|
||||
args.preserve_path = True
|
||||
args.dry_run = False
|
||||
__main__.f_clone(args)
|
||||
mock_run = utils.run_async.mock
|
||||
assert mock_run.call_count == 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue