summaryrefslogtreecommitdiff
path: root/factory
Commit message (Collapse)AuthorAge
* Improve Iterator and SubFactory declarations.Raphaël Barrois2013-03-03
| | | | | | | | | | | | * Iterator now cycles by default * Iterator can be provided with a custom getter * SubFactory accepts a factory import path as well Deprecates: * InfiniteIterator * CircularSubFactory 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>
* Fix version numbering.Raphaël Barrois2012-12-09
| | | | | | Somehow, I forgot that I had release 1.2.0 :/ Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Add classmethod decorator to child factories methodsobiwanus2012-12-09
| | | | | | Closes #33,#34 Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Fix pk lookup in _setup_next_sequence method.Eduard Iskandarov2012-12-09
| | | | | | Closes #31 Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Update my email;Raphaël Barrois2012-11-15
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Keep FACTORY_FOR around.Raphaël Barrois2012-11-15
| | | | | | And add a test too. Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Rename ABSTRACT_FACTORY to FACTORY_ABSTRACT.Raphaël Barrois2012-11-15
| | | | | | And add a deprecation warning too. Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Add MogoFactory.Raphaël Barrois2012-11-15
| | | | | | A Factory subclass, along the lines of DjangoModelFactory. Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Add an extension point for kwargs mangling.Raphaël Barrois2012-11-15
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Update docstrings.Raphaël Barrois2012-11-15
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Remove deprecated _*_function class attributes.Raphaël Barrois2012-11-15
| | | | | | Setting them will still work as intended, though. Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Mix SelfAttribute with ContainerAttribute.Raphaël Barrois2012-11-15
| | | | | | With a very simple syntax. 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] Rename xrange to rangeRaphaë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>
* Use proper relative/absolute imports.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>
* 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>