summaryrefslogtreecommitdiff
path: root/factory
Commit message (Collapse)AuthorAge
* 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>
* More cleanup and comments in factory.baseRaphaël Barrois2011-12-21
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Cleanup base module.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>
* Add a 'test' command to the setup.py script.Raphaël Barrois2011-12-21
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Allow custom 'build' functions.Raphaël Barrois2011-12-21
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Add utf8 file headers.Raphaël Barrois2011-12-20
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Version bump, author info updated.Raphaël Barrois2011-12-20
| | | | | | Getting ready for PyPI upload. Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Django models always have a _default_manager attribute; .objects may not be ↵Raphaël Barrois2011-12-12
| | | | a manager.
* Rewrite all the 'OrderedDeclaration' part.Raphaël Barrois2011-09-06
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Bugfix for stub.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>
* Allow inheriting from more than one factory.Raphaël Barrois2011-08-22
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Cleanup rmoch's DjangoModelFactory fix.Raphaël Barrois2011-08-18
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Bugfix DjangoModelFactoryRichard Moch2011-08-17
|
* Use the same sequence counter for parent and child classes.Raphaël Barrois2011-08-10
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Allow the definition of 'abstract' factories.Raphaël Barrois2011-08-03
| | | | | | Needs more testing. Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Add a 'DjangoModelFactory'.Raphaël Barrois2011-08-03
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Allow users to define a custom method for retrieving the first sequence of a ↵Raphaël Barrois2011-07-05
| | | | | | given factory. Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Add a new type of attribute, SelfAttribute.Raphaël Barrois2011-06-13
| | | | | | Should be used as a shortcut for 'lambda o: o.some_attr' ; most useful in SubFactories. Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Add tests for nice behaviour of SubFactory.Raphaël Barrois2011-06-13
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Fix the SubFactory/Sequence behaviour.Raphaël Barrois2011-05-24
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Prevent inherited classes from affecting superclasses.Raphaël Barrois2011-05-16
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>