aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2022-10-26 21:58:57 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2022-10-26 22:04:57 +0300
commitee0e2cb118d696ff3412f262c677c95bc8b56e6c (patch)
tree22d9c233678607fb4766e5ab225afc19778fdd2b /tests
parentcommit: don't show disable for targets that are no-op (diff)
downloadpkgdev-ee0e2cb118d696ff3412f262c677c95bc8b56e6c.tar.gz
pkgdev-ee0e2cb118d696ff3412f262c677c95bc8b56e6c.tar.bz2
pkgdev-ee0e2cb118d696ff3412f262c677c95bc8b56e6c.zip
commit: mention `-e` as nice option
Even though just passing `-e` works (as it is just passed to git), many users don't know the existence of this option, so now I publish it in help. Closes: https://bugs.gentoo.org/846785 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/scripts/test_pkgdev_commit.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/scripts/test_pkgdev_commit.py b/tests/scripts/test_pkgdev_commit.py
index efc9491..7b2eb61 100644
--- a/tests/scripts/test_pkgdev_commit.py
+++ b/tests/scripts/test_pkgdev_commit.py
@@ -84,6 +84,8 @@ class TestPkgdevCommitParseArgs:
('--dry-run', '--dry-run'),
('-v', '-v'),
('--verbose', '-v'),
+ ('-e', '--edit'),
+ ('--edit', '--edit'),
):
options, _ = tool.parse_args(['commit', opt])
assert expected in options.commit_args
@@ -94,7 +96,7 @@ class TestPkgdevCommitParseArgs:
repo.create_ebuild('cat/pkg-0')
git_repo.add_all('cat/pkg-0', commit=False)
with chdir(repo.location):
- for opt in ('--author="A U Thor <author@example.com>"', '-e'):
+ for opt in ('--author="A U Thor <author@example.com>"', '-p'):
options, _ = tool.parse_args(['commit', opt])
assert options.commit_args == [opt]