Closed kwakwaversal closed 7 years ago
fixtures.py was using the "module" scope as well as LocalCommand which is scoped at a different level. As such, this was preventing testinfra from successfully running test.
Using pointers from https://github.com/infOpen/pytest-ansible-docker/blob/master/pytest_ansible_docker.py I have fixed the scoping issue, whilst also running docker builds once per module.
Thank you @geeknam. Any chance of version bumping tocker to 0.2 in pip?
pip
fixtures.py was using the "module" scope as well as LocalCommand which is scoped at a different level. As such, this was preventing testinfra from successfully running test.
Using pointers from https://github.com/infOpen/pytest-ansible-docker/blob/master/pytest_ansible_docker.py I have fixed the scoping issue, whilst also running docker builds once per module.