From 7073eb700e688eae9e885b915f094c74cabac821 Mon Sep 17 00:00:00 2001 From: Adar Nimrod Date: Tue, 22 Nov 2016 21:32:29 +0200 Subject: [PATCH] - Adjust to run tests in Docker. --- tests/test_python.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_python.py b/tests/test_python.py index 9b9ad2d..4f70048 100644 --- a/tests/test_python.py +++ b/tests/test_python.py @@ -1,3 +1,8 @@ +from testinfra.utils.ansible_runner import AnsibleRunner + +testinfra_hosts = AnsibleRunner('.molecule/ansible_inventory').get_hosts('all') + + def test_python(Command): python = Command('python --version') assert python.rc == 0 -- GitLab