fix test_bash_completer for the date command (#5258)

see https://github.com/xonsh/xonsh/issues/5257

Co-authored-by: Ajrat Makhmutov <rauty@altlinux.org>
This commit is contained in:
Airat Makhmutov 2023-12-31 18:08:28 +03:00 committed by GitHub
parent e3a6dcf255
commit 66f0ba39f2
Failed to generate hash of commit

View file

@ -193,12 +193,12 @@ def test_bash_completer_empty_prefix():
3,
False,
),
# date --da -> date --date=
# date --u -> date --utc
(
CommandContext(args=(CommandArg("date"),), arg_index=1, prefix="--da"),
{"--date="},
4,
False,
CommandContext(args=(CommandArg("date"),), arg_index=1, prefix="--u"),
{"--utc"},
3,
True,
),
# dd status=pr -> dd status=progress
(