diff --git a/tests/test_deploy_key.py b/tests/test_deploy_key.py index 420b6d725bf9f95655f8decedd8eb27beac370df..b09a418fbf968e4531f989e83708112ecc07ff52 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