<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>Here's the simplified example code:</div>
<div>https://gist.github.com/elizabethlin/7754f0324b8f7b1c7388</div>
<div><br>
</div>
<div>this gets generates the following tests: </div>
<div>test_example.py:31: TestExample.test_one[std] FAILED </div>
<div>test_example.py:35: TestExample.test_two[std] FAILED </div>
<div>test_example.py:39: TestExample.test_three[std] FAILED </div>
<div>test_example.py:31: TestExample.test_one[virt] FAILED </div>
<div>test_example.py:35: TestExample.test_two[virt] FAILED </div>
<div><br>
</div>
<div><br>
</div>
<div> when really I want </div>
<div>test_example.py:31: TestExample.test_one[std] FAILED </div>
<div>test_example.py:35: TestExample.test_two[std] FAILED </div>
<div>test_example.py:39: TestExample.test_three[std] FAILED </div>
<div>test_example.py:31: TestExample.test_one[virt-typeA] FAILED </div>
<div>test_example.py:35: TestExample.test_two[virt-typeA] FAILED </div>
<div>" [virt-typeB] </div>
<div>" [virt-typeB]</div>
<div><br>
</div>
<div>Can someone help me out? I imagine that pytest_generate_tests gets called at an earlier step, before the fixtures are executed, and at that time, it can't detect that we need the parametrization for generated fix to happen. There's probably other reasons
this won't work, but I'm having trouble decifering the pytest code, and the flow of it. </div>
<div><br>
</div>
<div>Thanks,</div>
<div>Liz</div>
</body>
</html>