aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAge
* Test running improvements: tests can be run under python 2.6 (by using ↵Mikhail Korobov2012-04-10
| | | | optional unittest2), tox config for testing under different pythons, explicit python version requirements (factory_boy works with python 2.6 and 2.7); ./setup.py test returns proper error code in case of test failure.
* Move ATTR_SPLITTER logic to a dedicated module.Raphaël Barrois2012-04-09
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Fix tests.Raphaël Barrois2012-04-07
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* 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>
* Add a couple of tests for scope bleeding with InfiniteIterator and list ↵Raphaël Barrois2012-03-09
| | | | | | comprehensions (See #6). 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>
* 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>
* 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>
* Added support for staticmethods on factories as well.Carl Meyer2012-01-12
|
* Added API test for classmethod on factory.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
|/
* Add tests for subfactory field overriding.Raphaël Barrois2012-01-08
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* 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>
* Properly import the 'base' module in test_base.Raphaël Barrois2012-01-06
| | | | 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>