aboutsummaryrefslogtreecommitdiff
path: root/factory/containers.py
Commit message (Collapse)AuthorAge
* 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 bug in LazyStub.__getattr__Christoph Sieghart2014-01-21
| | | | | When run with optimizations turned on, the assert statement is not executed. This results in incorrect behaviour.
* LintRaphaël Barrois2013-09-24
|
* Add logging calls (Closes #45).Raphaël Barrois2013-06-14
|
* Add LazyStub.factory_parent (See #55).Raphaël Barrois2013-05-03
|
* Allow overriding the sequence counter.Raphaël Barrois2013-04-15
|
* Pylint.Raphaël Barrois2013-04-03
|
* internal: merge OrderedDeclaration.evaluate() variants.Raphaël Barrois2013-04-03
|
* Add full Python 3 compatibility (Closes #10, #20, #49).nkryptic2013-03-15
| | | | | | | | Also: - update travis.yml to build against 2.6-2.7 and 3.2-3.3 - Switch to relative imports Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* 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>
* [py3] Remove calls to iteritems().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>
* Improve test coverage.Raphaël Barrois2012-08-16
| | | | 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>
* Add PostGenerationDeclarationDict (cf. DeclarationDict).Raphaël Barrois2012-04-15
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Move ATTR_SPLITTER logic to a dedicated module.Raphaël Barrois2012-04-09
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Improve the 'SelfAttribute' syntax.v1.1.0Raphaël Barrois2012-02-24
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Improve documentation.Raphaël Barrois2012-02-24
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Allow using '__' in factory.SelfAttribute.Raphaël Barrois2012-02-24
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Add __repr__ / __str__ to a couple of objects.Raphaël Barrois2012-01-12
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Correct out-of-date docstring.Carl Meyer2012-01-12
|
* Added support for staticmethods on factories as well.Carl Meyer2012-01-12
|
* Clarify extended if check in DeclarationDict.update_with_public.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
|/
* Cleanup 'factory.declarations'.Raphaël Barrois2011-12-21
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* 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>
* Rewrite all the 'OrderedDeclaration' part.Raphaël Barrois2011-09-06
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Update all tests, and fix a couple of bugs.Raphaël Barrois2011-09-06
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Huge refactoring and code cleanup.Raphaël Barrois2011-09-06
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Better fix for nested subfactories.Raphaël Barrois2011-09-05
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Handle nested SubFactory with extra attributes.Raphaël Barrois2011-09-05
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Update docstrings.Raphaël Barrois2011-09-05
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Fix the SubFactory/Sequence behaviour.Raphaël Barrois2011-05-24
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Add SubFactories, and full testing.Raphaël Barrois2011-05-16
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Add a DeclarationHolder containing all the logic related to attribute ↵Raphaël Barrois2011-05-16
| | | | | | declaration. Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Cleaner code for ordered attributes.Raphaël Barrois2011-05-13
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Remove trailing whitespaceRaphaël Barrois2011-05-11
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* factory_boy: a test fixtures replacement based on thoughtbot's factory_girl ↵Mark Sandstrom2010-08-22
for Ruby