summaryrefslogtreecommitdiff
path: root/tests/test_containers.py
Commit message (Collapse)AuthorAge
* Fix a17b036: Error messages have moved.Raphaël Barrois2016-04-07
|
* Merge pull request #256 from koterpillar/cyclic-definition-rescueRaphaël Barrois2016-04-07
|\ | | | | Don't leave AttributeBuilder in an inconsistent state on exceptions
| * Test LazyValues handling CyclicDefinitionErrorAlexey Kotlyarov2015-12-08
| |
* | Add a new Params section to factories.Raphaël Barrois2016-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 Barrois2016-04-02
| |
* | factory: LazyFunction to just call a function in the simplest caseHervé Cauwelier2016-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 Barrois2015-03-26
|
* Rename 'target' to 'model'.Raphaël Barrois2014-05-18
|
* Remove containers.DeclarationsDict.Raphaël Barrois2014-05-18
| | | | Now replaced with a simple dict.
* Fix coverageRaphaël Barrois2013-06-15
|
* Add LazyStub.factory_parent (See #55).Raphaël Barrois2013-05-03
|
* Default Sequence.type to int (Closes #50).Raphaël Barrois2013-03-24
|
* Happy New Year!Raphaël Barrois2013-01-02
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* [py3] Various python3-compatibility fixes.Raphaël Barrois2012-11-15
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Add support for passing non-kwarg parameters to factories.Raphaël Barrois2012-08-17
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Only absorb dependant arguments for SubFactory fields (Closes #15).Raphaël Barrois2012-05-04
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Make tests compatible with python2.6 + unittest2Raphaël Barrois2012-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 Korobov2012-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 Barrois2012-01-12
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Added support for staticmethods on factories as well.Carl Meyer2012-01-12
|
* Merge branch 'master' into allow-public-classmethodsCarl Meyer2012-01-12
|\
| * Add support for 'LazyContainerAttribute', when a SubFactory field needs ↵Raphaël Barrois2012-01-12
| | | | | | | | | | | | access to attributes from its parent. Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* | Allow public classmethods on factories.Carl Meyer2012-01-11
|/
* Add encoding header.Raphaël Barrois2011-12-21
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Update copyrights.Raphaël Barrois2011-12-21
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Add a 'test' command to the setup.py script.Raphaël Barrois2011-12-21
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>