Skip to content
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

Pytest cannot find lazy_fixture: AttributeError: module 'pytest' has no attribute 'lazy_fixture' #2

Closed
mksifakis opened this issue Sep 17, 2020 · 1 comment

Comments

@mksifakis
Copy link
Collaborator

mksifakis commented Sep 17, 2020

According to TvoroG/pytest-lazy-fixture#22 this could probably by avoided by doing:
from pytest_lazyfixture import lazy_fixture, instead of using pytest.lazy_fixture(...).
I actually did it and it works.

@tim-oh
Copy link
Owner

tim-oh commented Sep 18, 2020

Thanks for flagging this and providing a solution. The error doesn't arise on my machine when I `py.test' in terminal, but I'll adjust according to the suggested fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants