New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lazy fixtures not working at all #33
Comments
@brian-barba-hernandez What version of |
The problem is this API change in pytest's I thought I'd looked up the version in which this was changed, and saw that it was the same version in which |
@YannickJadoul These are the libs I'm using while testing:
|
As a quick fix, updating |
Found it. The version numbers where not sorted correctly when I looked up the release of these two API changes. This should be correct:
And your version Apologies, I should've checked this better when I made that PR :-/ |
@YannickJadoul Many thanks :) |
Fix for pytest versions >= 3.6.0, < 3.7.0, fixes #33
Published new version Thanks @brian-barba-hernandez for opening the issue! |
@TvoroG You're welcome, thanks for the fix! |
I had a few lazy fixtures loaded in some of my tests like this:
Now, when the tests are being loaded it fails collecting them with:
If I changed the code to use tuples or arrays, the tests run but the lazy fixture is not loaded making the tests fail:
This was working properly before the upgrade to 0.5.0
I tried to use the format specified in the README with no luck. I had to remove the lazy fixture and use a different approach in the meantime.
Any idea of what's broken?
FYI, each fixture just creates a Group and adds the user to the created group. I assert the groups the user belongs to and it belongs to none so the fixture is not loaded when the test runs.
The text was updated successfully, but these errors were encountered: