Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Merge pull request #256 from koterpillar/cyclic-definition-rescue | Raphaël Barrois | 2016-04-07 |
|\ | | | | | Don't leave AttributeBuilder in an inconsistent state on exceptions | ||
| * | Test LazyValues handling CyclicDefinitionError | Alexey Kotlyarov | 2015-12-08 |
| | | |||
* | | Add a new Params section to factories. | Raphaël Barrois | 2016-04-02 |
| | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||
* | | Refactor: move error defs to a dedicated module. | Raphaël Barrois | 2016-04-02 |
| | | |||
* | | factory: LazyFunction to just call a function in the simplest case | Hervé Cauwelier | 2016-02-12 |
|/ | | | | No need to wrap it in a lambda to strip the object argument from LazyAttribute or the sequence argument from Sequence. | ||
* | Update header years. | Raphaël Barrois | 2015-03-26 |
| | |||
* | Rename 'target' to 'model'. | Raphaël Barrois | 2014-05-18 |
| | |||
* | Remove containers.DeclarationsDict. | Raphaël Barrois | 2014-05-18 |
| | | | | Now replaced with a simple dict. | ||
* | Fix coverage | Raphaël Barrois | 2013-06-15 |
| | |||
* | Add LazyStub.factory_parent (See #55). | Raphaël Barrois | 2013-05-03 |
| | |||
* | Default Sequence.type to int (Closes #50). | Raphaël Barrois | 2013-03-24 |
| | |||
* | Happy New Year! | Raphaël Barrois | 2013-01-02 |
| | | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org> | ||
* | [py3] Various python3-compatibility fixes. | Raphaël Barrois | 2012-11-15 |
| | | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org> | ||
* | Add support for passing non-kwarg parameters to factories. | Raphaël Barrois | 2012-08-17 |
| | | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org> | ||
* | Only absorb dependant arguments for SubFactory fields (Closes #15). | Raphaël Barrois | 2012-05-04 |
| | | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org> | ||
* | Make tests compatible with python2.6 + unittest2 | Raphaël Barrois | 2012-04-15 |
| | | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr> | ||
* | Test running improvements: tests can be run under python 2.6 (by using ↵ | Mikhail Korobov | 2012-04-10 |
| | | | | optional unittest2), tox config for testing under different pythons, explicit python version requirements (factory_boy works with python 2.6 and 2.7); ./setup.py test returns proper error code in case of test failure. | ||
* | Add __repr__ / __str__ to a couple of objects. | Raphaël Barrois | 2012-01-12 |
| | | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org> | ||
* | Added support for staticmethods on factories as well. | Carl Meyer | 2012-01-12 |
| | |||
* | Merge branch 'master' into allow-public-classmethods | Carl Meyer | 2012-01-12 |
|\ | |||
| * | Add support for 'LazyContainerAttribute', when a SubFactory field needs ↵ | Raphaël Barrois | 2012-01-12 |
| | | | | | | | | | | | | access to attributes from its parent. Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org> | ||
* | | Allow public classmethods on factories. | Carl Meyer | 2012-01-11 |
|/ | |||
* | Add encoding header. | Raphaël Barrois | 2011-12-21 |
| | | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org> | ||
* | Update copyrights. | Raphaël Barrois | 2011-12-21 |
| | | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org> | ||
* | Add a 'test' command to the setup.py script. | Raphaël Barrois | 2011-12-21 |
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org> |