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