We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Here's my fixture:
@fixture def devices(scope='module'); with connect(get_all_devices()) as connected_devices: yield connected_devices
Here's how I want to use it:
@parametrize('device', devices) def test_routine(device): device.do_something() assert device.is_ok()
What I'm doing instead:
def test_routine(subtests, devices): for index, device in enumerate(devices): with subtests.test(device, i=index): device.do_something() assert device.is_ok()
Is this possible with lazy fixture or any other method?