You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating factoryboy to 3.2.0 my tests using lazy_fixture with fixtures that use Trait (in result using Maybe) raise AttributeError: 'Maybe' object has no attribute 'call'.
The problem doens't come frompytest-lazy-fixture but from pytest-factoryboy, see this PR for failing tests pytest-dev/pytest-factoryboy#125
Update: It looks like it comes from pytest-lazy-fixture because the plugin is calling the _fillfixtures method/fixture first. So it is triggering the behaviour which would happen else a bit later anyway
I think @TvoroG you can close this issue (and if you want help to fix the issue on the pytest-factoryboy side)
After updating factoryboy to
3.2.0
my tests usinglazy_fixture
with fixtures that useTrait
(in result usingMaybe
) raiseAttributeError: 'Maybe' object has no attribute 'call'
.Attached is a full traceback from failed test case.
Seems like it could be a problem in
pytest_factoryboy
itself but I've seen it raised only for tests usinglazy_fixture
.The text was updated successfully, but these errors were encountered: