aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2021-03-09 15:53:04 -0700
committerTim Harder <radhermit@gmail.com>2021-03-09 15:53:04 -0700
commitd42e3ecc4b3e9e83c6a5bad1fc1fe0bfee681e2e (patch)
treeb04697987ce8b258e36a1da790b383576b6319ee /tests
parenttests: add some -b/--bug and -c/--closes tests (diff)
downloadpkgdev-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.py14
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)