aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2021-03-19 15:43:15 -0600
committerTim Harder <radhermit@gmail.com>2021-03-19 15:43:15 -0600
commitec2800c2776b251fd41c91a1b1d1f6e1c73c8faf (patch)
tree49383e296ad1ae84ba47fef06ea1d1c361510f26 /tests
parentpkgdev commit: simplify setting historical repo masters (diff)
downloadpkgdev-ec2800c2776b251fd41c91a1b1d1f6e1c73c8faf.tar.gz
pkgdev-ec2800c2776b251fd41c91a1b1d1f6e1c73c8faf.tar.bz2
pkgdev-ec2800c2776b251fd41c91a1b1d1f6e1c73c8faf.zip
tests: override GIT_EDITOR so stdin is never required
Diffstat (limited to 'tests')
-rw-r--r--tests/scripts/test_pkgdev_commit.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/scripts/test_pkgdev_commit.py b/tests/scripts/test_pkgdev_commit.py
index 2e8e1b8..18d01a2 100644
--- a/tests/scripts/test_pkgdev_commit.py
+++ b/tests/scripts/test_pkgdev_commit.py
@@ -388,7 +388,8 @@ class TestPkgdevCommit:
git_repo.add_all('cat/pkg-0')
def commit():
- with patch('sys.argv', self.args + ['-a']), \
+ with os_environ(GIT_EDITOR="sed -i '1s/$/commit/'"), \
+ patch('sys.argv', self.args + ['-a']), \
pytest.raises(SystemExit) as excinfo, \
chdir(git_repo.path):
self.script()