Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Release v2.5.1v2.5.1 | Raphaël Barrois | 2015-03-27 |
| | |||
* | Support declarations in FileField/ImageField. | Raphaël Barrois | 2015-03-27 |
| | | | | Previously, the declarations (``factory.Sequence`` & co) weren't properly computed. | ||
* | Respect default manager in DjangoModelFactory (Closes #192). | Raphaël Barrois | 2015-03-27 |
| | | | | | The previous version tries to use ``cls._default_manager`` all the time, which breaks with ``manager.using(db_name)``. | ||
* | Remove debug prints | Raphaël Barrois | 2015-03-27 |
| | |||
* | Update header years. | Raphaël Barrois | 2015-03-26 |
| | |||
* | Release v2.5.0v2.5.0 | Raphaël Barrois | 2015-03-26 |
| | |||
* | Turn FileField/ImageField into normal fields (Closes #141). | Raphaël Barrois | 2015-03-26 |
| | | | | | Previously, they ran as post_generation hooks, meaning that they couldn't be checked in a model's ``save()`` method, for instance. | ||
* | Remove limitations of factory.StubFactory (Closes #131). | Raphaël Barrois | 2015-03-26 |
| | | | | | ``StubFactory.build()`` is now supported, and maps to ``StubFactory.stub()``. | ||
* | Add support for multidb with Django (Closes #171). | Raphaël Barrois | 2015-03-26 |
| | | | | | | | | | | | | | | The ``factory.django.DjangoModelFactory`` now takes an extra option: ``` class MyFactory(factory.django.DjangoModelFactory): class Meta: model = models.MyModel database = 'replica' ``` This will create all instances of ``models.Model`` in the ``'replica'`` database. | ||
* | Fix issues between mute_signals() and factory inheritance (Closes #183). | Raphaël Barrois | 2015-03-26 |
| | | | | | | Previously, if a factory was decorated with ``@mute_signals`` and one of its descendant called another one of its descendant, signals weren't unmuted properly. | ||
* | Allow lazy evaluation of FuzzyChoice's iterators (Closes #184). | Raphaël Barrois | 2015-03-26 |
| | | | | | | | | | This allows the following idiom: ``user = factory.fuzzy.FuzzyChoice(User.objects.all())`` Previously, the ``User.objects.all()`` queryset would have been evaluated *at import time*; it is now evaluated with the first use of the ``FuzzyChoice``. | ||
* | Fix typo in FuzzyDateTime (Closes #189). | Raphaël Barrois | 2015-03-26 |
| | | | | Thanks to @shinuza for spotting this! | ||
* | Logs: Allow non-integer sequences (Closes #148). | Raphaël Barrois | 2015-03-03 |
| | | | | As pointed by @glinmac. | ||
* | Fix bad default value for Factory.declarations (Closes #162). | Raphaël Barrois | 2015-03-03 |
| | |||
* | Enable resetting factory.fuzzy's random generator (Closes #175, #185). | Raphaël Barrois | 2015-02-18 |
| | | | | | | | | | Users may now call ``factory.fuzzy.get_random_state()`` to retrieve the current random generator's state (isolated from the one used in Python's ``random``). That state can then be reinjected with ``factory.fuzzy.set_random_state(state)``. | ||
* | Remove deprecated features. | Raphaël Barrois | 2014-11-18 |
| | | | | | This disables the ``FACTORY_FOR`` syntax and related parameters, that should be declared through ``class Meta``. | ||
* | Remove automagic pk-based sequence setup | Raphaël Barrois | 2014-11-16 |
| | | | | | | | | | | | | | | | | | | | | | | | | Related to issues #78, #92, #103, #111, #153, #170 The default value of all sequences is now 0; the automagic ``_setup_next_sequence`` behavior of Django/SQLAlchemy has been removed. This feature's only goal was to allow the following scenario: 1. Run a Python script that uses MyFactory.create() a couple of times (with a unique field based on the sequence counter) 2. Run the same Python script a second time Without the magical ``_setup_next_sequence``, the Sequence counter would be set to 0 at the beginning of each script run, so both runs would generate objects with the same values for the unique field ; thus conflicting and crashing. The above behavior having only a very limited use and bringing various issues (hitting the database on ``build()``, problems with non-integer or composite primary key columns, ...), it has been removed. It could still be emulated through custom ``_setup_next_sequence`` methods, or by calling ``MyFactory.reset_sequence()``. | ||
* | Release v2.4.1v2.4.12.4.1 | Raphaël Barrois | 2014-06-23 |
| | |||
* | Fix declaration inheritance. | Raphaël Barrois | 2014-06-23 |
| | |||
* | Release v2.4.0v2.4.0 | Raphaël Barrois | 2014-06-21 |
| | |||
* | Provide readable errors when Meta.model isn't set (Closes #137). | Raphaël Barrois | 2014-06-21 |
| | |||
* | Rename hidden/arg_parameters to exclude/inline_args. | Raphaël Barrois | 2014-05-18 |
| | |||
* | Rename 'target' to 'model'. | Raphaël Barrois | 2014-05-18 |
| | |||
* | Add DeprecationWarning for FACTORY_* kwargs | Raphaël Barrois | 2014-05-18 |
| | |||
* | Remove containers.DeclarationsDict. | Raphaël Barrois | 2014-05-18 |
| | | | | Now replaced with a simple dict. | ||
* | Switch tests to class Meta. | Raphaël Barrois | 2014-05-18 |
| | |||
* | Migrate factory.alchemy to class Meta | Raphaël Barrois | 2014-05-18 |
| | |||
* | factory.django: Fix counter inheritance with abstract models. | Raphaël Barrois | 2014-05-18 |
| | |||
* | Switch FACTORY_FOR and related to 'class Meta'. | Raphaël Barrois | 2014-05-18 |
| | | | | | | | This is easier to declare, avoids cluttering the namespace, and provides entry points for ORM-specific customization. Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org> | ||
* | Merge branch 'maint/2.3.x' | Raphaël Barrois | 2014-01-22 |
|\ | |||
| * | Release v2.3.1v2.3.12.3.1 | Raphaël Barrois | 2014-01-22 |
| | | |||
| * | Fix log_pprint for *args (Closes #127). | Raphaël Barrois | 2014-01-22 |
| | | |||
| * | Fix log_pprint (Closes #123). | Raphaël Barrois | 2014-01-22 |
| | | |||
* | | fuzzy: Add FuzzyFloat (Closes #124). | Raphaël Barrois | 2014-01-22 |
| | | | | | | | | As suggested by @savingschampion | ||
* | | Fix log_pprint for *args (Closes #127). | Raphaël Barrois | 2014-01-22 |
| | | |||
* | | Fix mute_signals' decorator. | Raphaël Barrois | 2014-01-22 |
| | | |||
* | | Fix log_pprint (Closes #123). | Raphaël Barrois | 2014-01-22 |
| | | |||
* | | Improve mute_signals (Closes #122). | Raphaël Barrois | 2014-01-21 |
| | | |||
* | | Added "prevent_signals" decorator/context manager | Ilya Pirogov | 2014-01-21 |
| | | |||
* | | Merge branch 'maint/2.3.x' | Raphaël Barrois | 2014-01-21 |
|\| | | | | | | | | | Conflicts: docs/changelog.rst | ||
| * | Fix bug in LazyStub.__getattr__ | Christoph Sieghart | 2014-01-21 |
| | | | | | | | | | | When run with optimizations turned on, the assert statement is not executed. This results in incorrect behaviour. | ||
* | | Added FuzzyInteger support for step | Ilya Pirogov | 2013-12-27 |
|/ | |||
* | Release v2.3.0v2.3.0 | Raphaël Barrois | 2013-12-25 |
| | |||
* | Added SubFactory support for MongoEngine's EmbeddedDocument | Ivan Miric | 2013-12-25 |
| | |||
* | django: Fix lazy loading of 'son' factories (Closes #109). | Raphaël Barrois | 2013-11-25 |
| | |||
* | Fix compatibility wrapper for Decimal. | Raphaël Barrois | 2013-10-29 |
| | |||
* | Fix FuzzyDecimal on Python2.6. | Raphaël Barrois | 2013-10-29 |
| | |||
* | Style fixes for FuzzyDecimal (Closes #94). | Raphaël Barrois | 2013-10-29 |
| | |||
* | Added a Fuzzy Decimal attribute. | Omer | 2013-10-29 |
| | |||
* | Added FuzzyText attribute. | Jon Dufresne | 2013-10-29 |
| | | | | Useful for unique model attributes where the specific value can be fuzzy. |