aboutsummaryrefslogtreecommitdiff
path: root/factory
Commit message (Collapse)AuthorAge
* Back to upstream version 1.1.5Thomas Goirand2012-10-14
|
* 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>
* Add DeprecationWarnings on set_XXX_function.Raphaël Barrois2012-08-16
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Refactor building_function/creation_function handling.Raphaël Barrois2012-08-16
| | | | | | Rely on inheritance instead of handwritten set_creation_function and such. Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Mark automatic associated class discovery as deprecated.Raphaël Barrois2012-08-16
| | | | | | Also improve warning reporting. Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Version bump.v1.2.0factory_boy-1.2.0Raphaël Barrois2012-08-09
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Introduce 'CircularSubFactory.Raphaël Barrois2012-08-09
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* utils.multi_extract_dict: improve docstring.Raphaël Barrois2012-07-10
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Switch `sorted` argument from `cmp` to `key`.Marc Abramowitz2012-07-10
|
* Version bumpv1.1.51.1.5Raphaël Barrois2012-07-09
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Fix PostGenerationDeclaration.extract.Raphaël Barrois2012-07-09
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Version bump to 1.1.4v1.1.4Raphaël Barrois2012-06-19
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Fix sequence count for SubFactory (Closes #16).Raphaël Barrois2012-06-01
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Only absorb dependant arguments for SubFactory fields (Closes #15).Raphaël Barrois2012-05-04
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Typo in PostGenerationMethodCall.__init__ (Closes #14).Raphaël Barrois2012-05-02
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Rename post_declaration to post_generation.Raphaël Barrois2012-04-15
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Expose and test factory.RelatedFactory.Raphaël Barrois2012-04-15
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Handle the PostGeneration declarations.Raphaël Barrois2012-04-15
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Add PostGenerationDeclarationDict (cf. DeclarationDict).Raphaël Barrois2012-04-15
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Whitespace cleanupRaphaël Barrois2012-04-15
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Add basis for PostGenerationDeclarationRaphaël Barrois2012-04-15
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Cleaner extract_dict: allow excluded keys.Raphaël Barrois2012-04-15
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Move ATTR_SPLITTER logic to a dedicated module.Raphaël Barrois2012-04-09
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Fix the __str__ method of factory classes.Raphaël Barrois2012-04-07
|
* Add and document abstract factories (Closes #8).Raphaël Barrois2012-04-07
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Add a '@use_strategy' decorator for forcing alternate strategies.Raphaël Barrois2012-03-17
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Version bump.v1.1.2Raphaël Barrois2012-02-24
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Add the Iterator and InfiniteIterator attribute kinds.Raphaël Barrois2012-02-24
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Add support for 'generate' and 'simple_generate'Raphaël Barrois2012-02-24
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Version bumpv1.1.1Raphaël Barrois2012-02-24
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Add batches.Raphaël Barrois2012-02-24
| | | | 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>
* Upgrade version.Raphaë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 a PendingDeprecationWarning on associated class auto-discovery.Raphaël Barrois2012-01-13
| | | | 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>
* Rename LazyContainerAttibute to ContainerAttribute.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
|\
| * Rearrange tests.Raphaël Barrois2012-01-12
| | | | | | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
| * 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
|/
* Publish the make_factory method, and make sure that complex declarations ↵Raphaël Barrois2012-01-06
| | | | | | work with it. Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Add factory.build(), factory.create(), factory.stub() methods.Raphaël Barrois2012-01-06
| | | | | | Those are shortcuts for writing a full Factory class. Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Cleanup 'factory.declarations'.Raphaël Barrois2011-12-21
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Cleanup 'factory.declarations'.Raphaël Barrois2011-12-21
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>