From 269f805bda40f83fac2298a5cb5b9973f0e74788 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sun, 16 Apr 2017 20:19:42 +0300 Subject: [PATCH] - Added test for git fetch as root. --- tests/test_deploy_key.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_deploy_key.py b/tests/test_deploy_key.py index 420b6d7..b09a418 100644 --- a/tests/test_deploy_key.py +++ b/tests/test_deploy_key.py @@ -7,3 +7,9 @@ def test_deploy_key(Command, Sudo): with Sudo(user='nobody'): assert Command( 'git --git-dir /tmp/ansible-role-deploy-key/.git pull').rc == 0 + + +def test_deploy_key_root(Command, Sudo): + with Sudo(): + assert Command( + 'git --git-dir /tmp/ansible-role-deploy-key/.git pull').rc == 0 -- GitLab