diff options
author | Tim Harder <radhermit@gmail.com> | 2021-03-09 15:53:04 -0700 |
---|---|---|
committer | Tim Harder <radhermit@gmail.com> | 2021-03-09 15:53:04 -0700 |
commit | d42e3ecc4b3e9e83c6a5bad1fc1fe0bfee681e2e (patch) | |
tree | b04697987ce8b258e36a1da790b383576b6319ee /tests | |
parent | tests: add some -b/--bug and -c/--closes tests (diff) | |
download | pkgdev-d42e3ecc4b3e9e83c6a5bad1fc1fe0bfee681e2e.tar.gz pkgdev-d42e3ecc4b3e9e83c6a5bad1fc1fe0bfee681e2e.tar.bz2 pkgdev-d42e3ecc4b3e9e83c6a5bad1fc1fe0bfee681e2e.zip |
pkgdev push: drop explicitly enabled --signed option for gentoo repo
Fixes #27.
It'll either have to be specified directly on the cli or configured via
git config.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scripts/test_pkgdev_push.py | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/tests/scripts/test_pkgdev_push.py b/tests/scripts/test_pkgdev_push.py index 0e80ab6..35a3e31 100644 --- a/tests/scripts/test_pkgdev_push.py +++ b/tests/scripts/test_pkgdev_push.py @@ -38,16 +38,10 @@ class TestPkgdevPushParseArgs: git_repo = make_git_repo(repo.location) with chdir(git_repo.path): options, _ = tool.parse_args(['push', 'origin', 'master']) - assert options.push_args == ['origin', 'master'] - - def test_gentoo_repo_git_push_args(self, make_repo, make_git_repo, tool): - """Unknown arguments for ``pkgdev push`` are passed to ``git push``.""" - repo = make_repo(repo_id='gentoo') - git_repo = make_git_repo(repo.location) - with chdir(git_repo.path): - options, _ = tool.parse_args(['push', '-n']) - assert '--signed' in options.push_args - assert '--dry-run' in options.push_args + assert options.push_args == ['origin', 'master'] + options, _ = tool.parse_args(['push', '-n', '--signed']) + assert '--dry-run' in options.push_args + assert '--signed' in options.push_args def test_scan_args(self, repo, make_git_repo, tool): git_repo = make_git_repo(repo.location) |