praekeltfoundation / seaworthy

Test harness for Docker container images 🌊 🚢
BSD 3-Clause "New" or "Revised" License
29 stars 4 forks source link

Make it easier to define fixture dependencies #47

Closed JayH5 closed 7 years ago

JayH5 commented 7 years ago

For example, a container may depend on certain volumes or a network. Doing this currently is a bit tricky as there is no simple way to tie the lifetime of, say, a volume to the containers that use it.

One possible approach for pytest fixtures would be to provide a list of fixture names when creating a pytest fixture and then have a call to request.getfixturevalue(<fixture name>) in order to enforce the dependency.

JayH5 commented 7 years ago

Fixed in #54