1
0
Fork 0

Adding upstream version 0.16.1.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-11 18:46:21 +01:00
parent 203fae4667
commit 54898c7244
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
14 changed files with 83 additions and 889 deletions

View file

@ -9,7 +9,7 @@ import shlex
from gita import __main__
from gita import utils, info, common
from conftest import (
PATH_FNAME, PATH_FNAME_EMPTY, PATH_FNAME_CLASH, GROUP_FNAME, PATH_FNAME_MAIN,
PATH_FNAME, PATH_FNAME_EMPTY, PATH_FNAME_CLASH, GROUP_FNAME,
async_mock, TEST_DIR,
)
@ -115,8 +115,6 @@ class TestLsLl:
(PATH_FNAME,
"repo1 cmaster dsu\x1b[0m msg \nrepo2 cmaster dsu\x1b[0m msg \nxxx cmaster dsu\x1b[0m msg \n"),
(PATH_FNAME_EMPTY, ""),
(PATH_FNAME_MAIN,
'\x1b[4mmain1\x1b[0m cmaster dsu\x1b[0m msg \nxx cmaster dsu\x1b[0m msg \n'),
(PATH_FNAME_CLASH,
"repo1 cmaster dsu\x1b[0m msg \nrepo2 cmaster dsu\x1b[0m msg \n"
),
@ -188,6 +186,7 @@ def test_clone_with_preserve_path(*_):
mock_run.assert_called_once_with('repo', Path.cwd(), cmds)
@patch('os.makedirs')
@patch('os.path.isfile', return_value=True)
@patch('gita.common.get_config_fname', return_value='some path')
@patch('gita.utils.get_repos', return_value={'repo1': {'path': '/a/', 'type': ''},