Adding upstream version 0.16.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
7cdc86fc2c
commit
6e615d8555
11 changed files with 143 additions and 124 deletions
|
@ -71,6 +71,7 @@ class TestLsLl:
|
|||
"""
|
||||
functional test
|
||||
"""
|
||||
|
||||
# avoid modifying the local configuration
|
||||
def side_effect(input, _=None):
|
||||
return tmp_path / f"{input}.txt"
|
||||
|
@ -129,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",
|
||||
),
|
||||
],
|
||||
)
|
||||
|
@ -527,7 +528,9 @@ class TestInfo:
|
|||
args.info_cmd = None
|
||||
__main__.f_info(args)
|
||||
out, err = capfd.readouterr()
|
||||
assert "In use: branch,commit_msg,commit_time\nUnused: path\n" == out
|
||||
assert (
|
||||
"In use: branch,commit_msg,commit_time\nUnused: branch_name,path\n" == out
|
||||
)
|
||||
assert err == ""
|
||||
|
||||
@patch("gita.common.get_config_fname")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue