geeknam / tocker

tocker: TDD for Dockerfile
12 stars 1 forks source link

Fixing LocalCommand scoping issue. #2

Closed kwakwaversal closed 7 years ago

kwakwaversal commented 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.

kwakwaversal commented 7 years ago

Thank you @geeknam. Any chance of version bumping tocker to 0.2 in pip?