summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAge
* 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>
* Disable new warnings in tests.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>
* Explicitly set FACTORY_FOR in tests.Raphaël Barrois2012-08-16
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Add full tests for CircularSubFactory.Raphaël Barrois2012-08-16
| | | | 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>
* Switch `sorted` argument from `cmp` to `key`.Marc Abramowitz2012-07-10
|
* Fix TestCase name conflictRaphaël Barrois2012-07-09
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* 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>
* 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>
* Make tests compatible with python2.6 + unittest2Raphaë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>
* 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>