summaryrefslogtreecommitdiff
path: root/factory
Commit message (Collapse)AuthorAge
* 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>
* Add SubFactories, and full testing.Raphaël Barrois2011-05-16
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Move tests.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>
* Improve handling of custom build/create functions.Raphaël Barrois2011-05-13
| | | | | | Only public attributes (i.e not starting with _) will be handled properly. Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Improve base.py: use pop(), allow factory inheritance.Raphaël Barrois2011-05-12
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Fix concurrency between declarations for LazyAttributes and Sequence.Raphaël Barrois2011-05-11
| | | | 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>