diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2016-04-02 16:13:34 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2016-04-02 17:11:46 +0200 |
commit | c77962de7dd7206ccab85b44da173832acbf5921 (patch) | |
tree | 0913b772d5181f654d5ce824753186a2252e9691 /tests/test_utils.py | |
parent | eea28cce1544021f3d152782c9932a20402d6240 (diff) | |
download | factory-boy-c77962de7dd7206ccab85b44da173832acbf5921.tar factory-boy-c77962de7dd7206ccab85b44da173832acbf5921.tar.gz |
Add a new Params section to factories.
This handles parameters that alter the declarations of a factory.
A few technical notes:
- A parameter's outcome may alter other parameters
- In order to fix that, we perform a (simple) cyclic definition
detection at class declaration time.
- Parameters may only be either naked values or ComplexParameter
subclasses
- Parameters are never passed to the underlying class
Diffstat (limited to 'tests/test_utils.py')
0 files changed, 0 insertions, 0 deletions