hosts#
- pytest_bluezenv.hosts(request, vm, host_setup)[source]#
Function-scope fixture that expands to a list of VM host proxies (
HostProxy), with configuration as specified inhost_config. The VM instances used may be reused by other tests. The userspace test runner is torn down between tests.- Parameters:
request (
pytest.FixtureRequest) – test fixture request.vm (
env.Environment) – shared VM-host environment.host_setup (
dict) – host-plugin configuration.
- Yields:
list[HostProxy]– configured VM-host proxies.
Example
def test_something(hosts): host0 = hosts[0] host1 = hosts[1]