summaryrefslogtreecommitdiff
path: root/factory
Commit message (Collapse)AuthorAge
...
* 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>
* factory_boy: a test fixtures replacement based on thoughtbot's factory_girl ↵Mark Sandstrom2010-08-22
for Ruby