Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Added SQLAlchemy support | minimumserious | 2013-06-20 |
| | |||
* | Fix FileField (bytes instead of str) | Raphaël Barrois | 2013-06-15 |
| | |||
* | Add factory.django.FileField (See #52) | Raphaël Barrois | 2013-06-15 |
| | |||
* | Pass attribute name to PostGenerationDeclaration | Raphaël Barrois | 2013-06-15 |
| | |||
* | Fix coverage | Raphaël Barrois | 2013-06-15 |
| | |||
* | Cleanup PostGenerationDeclaration extraction context. | Raphaël Barrois | 2013-06-15 |
| | |||
* | Add Iterator.reset() (Closes #63). | Raphaël Barrois | 2013-06-15 |
| | |||
* | Properly handle passed-in None in RelatedFactory (Closes #62). | Raphaël Barrois | 2013-06-14 |
| | | | | Thanks to @Dhekke for the help! | ||
* | Add logging calls (Closes #45). | Raphaël Barrois | 2013-06-14 |
| | |||
* | Factor lazy Factory import code. | Raphaël Barrois | 2013-06-10 |
| | |||
* | Add django-based tests for DjangoModelFactory. | Raphaël Barrois | 2013-06-10 |
| | |||
* | Add Factory.reset_sequence. | Raphaël Barrois | 2013-06-10 |
| | |||
* | Move DjangoModelFactory / MogoFactory to their own modules. | Raphaël Barrois | 2013-06-09 |
| | |||
* | Add LazyStub.factory_parent (See #55). | Raphaël Barrois | 2013-05-03 |
| | |||
* | declarations: Rename RelatedFactory.name (See #58). | Raphaël Barrois | 2013-04-29 |
| | | | | | | Use less conflict-prone factory_related_name. Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org> | ||
* | Update changelog. | Raphaël Barrois | 2013-04-21 |
| | |||
* | Add FuzzyDateTime/FuzzyNaiveDateTime. | Raphaël Barrois | 2013-04-21 |
| | |||
* | Add FuzzyDate | Saul Shanabrook | 2013-04-21 |
| | | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org> | ||
* | Release v2.0.2v2.0.22.0.2 | Raphaël Barrois | 2013-04-16 |
| | |||
* | Don't use objects.get_or_create() unless required. | Raphaël Barrois | 2013-04-16 |
| | |||
* | Release v2.0.1v2.0.1 | Raphaël Barrois | 2013-04-16 |
| | |||
* | Release v2.0.0v2.0.0 | Raphaël Barrois | 2013-04-15 |
| | |||
* | Add Dict/List declarations (Closes #18). | Raphaël Barrois | 2013-04-15 |
| | |||
* | Allow overriding the sequence counter. | Raphaël Barrois | 2013-04-15 |
| | |||
* | Add factory.fuzzy (Closes #41). | Raphaël Barrois | 2013-04-11 |
| | |||
* | Pylint. | Raphaël Barrois | 2013-04-03 |
| | |||
* | internal: merge OrderedDeclaration.evaluate() variants. | Raphaël Barrois | 2013-04-03 |
| | |||
* | Add support for get_or_create in DjangoModelFactory. | Raphaël Barrois | 2013-04-02 |
| | |||
* | Add Factory.FACTORY_HIDDEN_ARGS. | Raphaël Barrois | 2013-04-02 |
| | | | | | Fields listed in this class attributes will be removed from the kwargs dict passed to the associated class for building/creation. | ||
* | declarations: minor code simplification | Raphaël Barrois | 2013-04-02 |
| | |||
* | Default Sequence.type to int (Closes #50). | Raphaël Barrois | 2013-03-24 |
| | |||
* | Add full Python 3 compatibility (Closes #10, #20, #49). | nkryptic | 2013-03-15 |
| | | | | | | | | Also: - update travis.yml to build against 2.6-2.7 and 3.2-3.3 - Switch to relative imports Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org> | ||
* | Make the Factory class Py3 compatible. | Raphaël Barrois | 2013-03-15 |
| | | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org> | ||
* | Merge Factory into BaseFactory. | Raphaël Barrois | 2013-03-15 |
| | | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org> | ||
* | Fix exception hierarchy. | Raphaël Barrois | 2013-03-15 |
| | | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org> | ||
* | Merge BaseFactoryMetaClass into FactoryMetaClass. | Raphaël Barrois | 2013-03-15 |
| | | | | | | Also fix FACTORY_STRATEGY. Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org> | ||
* | Remove unused constants. | Raphaël Barrois | 2013-03-15 |
| | | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org> | ||
* | Remove extract_prefix from post-generation hooks. | Raphaël Barrois | 2013-03-11 |
| | | | | Magic abuse is bad. | ||
* | Remove CircularSubFactory. | Raphaël Barrois | 2013-03-11 |
| | | | | Replace CircularSubFactory('module', 'symbol') with SubFactory('module.symbol'). | ||
* | Remove InfiniteIterator and infinite_iterator. | Raphaël Barrois | 2013-03-11 |
| | | | | Use Iterator/iterator instead. | ||
* | Remove automagic associated class discovery. | Raphaël Barrois | 2013-03-11 |
| | |||
* | Start work on v2. | Raphaël Barrois | 2013-03-11 |
| | |||
* | Remove building_function/creation_function. | Raphaël Barrois | 2013-03-11 |
| | | | | Stop defaulting to Django's .objects.create(). | ||
* | Add FACTORY_CLASS kwarg to make_factory and friends. | Raphaël Barrois | 2013-03-11 |
| | |||
* | Proper manager fetching in DjangoModelFactory. | Raphaël Barrois | 2013-03-11 |
| | |||
* | Version bump to 1.3.0v1.3.0 | Raphaël Barrois | 2013-03-11 |
| | | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr> | ||
* | Stop calling Foo.objects.create() when it doesn't break (Closes #23). | Raphaël Barrois | 2013-03-05 |
| | | | | | | | | | This will be properly fixed in v2.0.0; the current heuristic is: - If the user defined a custom _create method, use it - If he didn't, but the associated class has a objects attribute, use TheClass.objects.create(*args, **kwargs) - Otherwise, simply call TheClass(*args, **kwargs). Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org> | ||
* | Cleanup argument extraction in PostGenMethod (See #36). | Raphaël Barrois | 2013-03-05 |
| | | | | | | | This provides a consistent behaviour for extracting arguments to a PostGenerationMethodCall. Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org> | ||
* | Use extracted argument in PostGenerationMethodCall. | Chris Lasher | 2013-03-04 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset makes it possible possible to override the default method arguments (or "method_args") passed in when instantiating PostGenerationMethodCall. Now the user can override the default arguments to the method called during post-generation when instantiating a factory. For example, using this UserFactory, class UserFactory(factory.Factory): FACTORY_FOR = User username = factory.Sequence(lambda n: 'user{0}'.format(n)) password = factory.PostGenerationMethodCall( 'set_password', None, 'defaultpassword') by default, the user will have a password set to 'defaultpassword', but this can be overridden by passing in a new password as a keyword argument: >>> u = UserFactory() >>> u.check_password('defaultpassword') True >>> other_u = UserFactory(password='different') >>> other_u.check_password('defaultpassword') False >>> other_u.check_password('different') True This changeset introduces a testing dependency on the Mock package http://pypi.python.org/pypi/mock. While this is a third-party dependency in Python 2, it is part of the Python 3 standard library, as unit.mock, and so a reasonable dependency to satisfy. Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org> | ||
* | Add a 'after post_generation' hook to Factory. | Raphaël Barrois | 2013-03-04 |
| | | | | | | Use it in DjangoModelFactory to save objects again if a post_generation hook ran. Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org> |