diff --git a/molecule/default/tests/test_default.py b/molecule/default/tests/test_default.py index 2507cac..2f48c0d 100644 --- a/molecule/default/tests/test_default.py +++ b/molecule/default/tests/test_default.py @@ -1,5 +1,6 @@ """Role testing files using testinfra.""" + def test_hosts_file(host): """Validate /etc/hosts file.""" etc_hosts = host.file("/etc/hosts") diff --git a/molecule/with_custom_repo/tests/conftest.py b/molecule/with_custom_repo/tests/conftest.py index 2d9f0c0..f7ddb3f 100644 --- a/molecule/with_custom_repo/tests/conftest.py +++ b/molecule/with_custom_repo/tests/conftest.py @@ -1,8 +1,11 @@ """PyTest Fixtures.""" from __future__ import absolute_import + import os + import pytest + def pytest_runtest_setup(item): """Run tests only when under molecule with testinfra installed.""" try: diff --git a/molecule/with_custom_repo/tests/test_default.py b/molecule/with_custom_repo/tests/test_default.py index 206e9e7..fa629ef 100644 --- a/molecule/with_custom_repo/tests/test_default.py +++ b/molecule/with_custom_repo/tests/test_default.py @@ -1,5 +1,6 @@ """Role testing files using testinfra.""" + def test_hosts_file(host): """Validate /etc/hosts file.""" etc_hosts = host.file("/etc/hosts")