File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ Unreleased
88- Add python 3.9 and 3.10 to the CI test matrix.
99- Add pytest 6 to the CI test matrix.
1010- Drop support for pytest < 4.6.
11+ - Add support for factory_boy >= 3.2.0
1112
1213
13142.0.3
Original file line number Diff line number Diff line change 1+ try :
2+ from factory .declarations import PostGenerationContext
3+ except ImportError : # factory_boy < 3.2.0
4+ from factory .builder import PostGenerationContext
Original file line number Diff line number Diff line change 1111
1212from inspect import getmodule , signature
1313
14+ from pytest_factoryboy .compat import PostGenerationContext
15+
1416SEPARATOR = "__"
1517
1618
@@ -238,7 +240,7 @@ class Factory(factory_class):
238240 else :
239241 extra [k ] = v
240242
241- postgen_context = factory . builder . PostGenerationContext (
243+ postgen_context = PostGenerationContext (
242244 value_provided = True ,
243245 value = evaluate (request , request .getfixturevalue (argname )),
244246 extra = extra ,
You can’t perform that action at this time.
0 commit comments