pytest-dev / pytest-factoryboy

factory_boy integration the pytest runner
MIT License
359 stars 42 forks source link

conflict/clash with `factoryboy==3.2.0` #107

Closed skarzi closed 3 years ago

skarzi commented 3 years ago

Hi :wave:

First of all thanks for maintaining this great project!

pytest-factoryboy no longer works with factoryboy==3.2.0, following exception is raised inside model_fixture:

AttributeError: module 'factory.builder' has no attribute 'PostGenerationContext'

It's related to https://github.com/FactoryBoy/factory_boy/pull/828

This issue also shows that we need to add some env to tox with tests ran for factoryboy built from master branch, just to know that something could potentially break in the next release

youtux commented 3 years ago

Fixed by https://github.com/pytest-dev/pytest-factoryboy/pull/109

youtux commented 3 years ago

I just released version 2.1.0 that contains the fix for this issue.