aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAge
* Fix issues between mute_signals() and factory inheritance (Closes #183).Raphaël Barrois2015-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 Barrois2015-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``.
* Enable resetting factory.fuzzy's random generator (Closes #175, #185).Raphaël Barrois2015-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 Barrois2014-11-18
| | | | | This disables the ``FACTORY_FOR`` syntax and related parameters, that should be declared through ``class Meta``.
* Remove automagic pk-based sequence setupRaphaël Barrois2014-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()``.
* Add tests for self-referential models (See #173).Raphaël Barrois2014-11-02
|
* Fix support for Django 1.7.Raphaël Barrois2014-09-03
|
* Fix test running without django (Closes #161).Raphaël Barrois2014-09-03
|
* tests: Update to Django new 'duplicate file' mechanism.Raphaël Barrois2014-08-21
|
* Fix declaration inheritance.Raphaël Barrois2014-06-23
|
* Provide readable errors when Meta.model isn't set (Closes #137).Raphaël Barrois2014-06-21
|
* Fix test_deprecation test.Raphaël Barrois2014-05-18
|
* Rename hidden/arg_parameters to exclude/inline_args.Raphaël Barrois2014-05-18
|
* Rename 'target' to 'model'.Raphaël Barrois2014-05-18
|
* Add DeprecationWarning for FACTORY_* kwargsRaphaël Barrois2014-05-18
|
* Remove containers.DeclarationsDict.Raphaël Barrois2014-05-18
| | | | Now replaced with a simple dict.
* Switch tests to class Meta.Raphaël Barrois2014-05-18
|
* Add tests for class MetaRaphaël Barrois2014-05-18
|
* Migrate factory.alchemy to class MetaRaphaël Barrois2014-05-18
|
* factory.django: Fix counter inheritance with abstract models.Raphaël Barrois2014-05-18
|
* Switch FACTORY_FOR and related to 'class Meta'.Raphaël Barrois2014-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>
* Fix 'gif' image tests.Raphaël Barrois2014-04-20
| | | | The latest pillow has changed the default gif palette, so we'll use a normalized RGB palette instead.
* Add test ensuring that classmethods aren't altered (See #135).Raphaël Barrois2014-02-28
|
* Fix log_pprint (Closes #123).Raphaël Barrois2014-01-22
|
* Improve mute_signals (Closes #122).Raphaël Barrois2014-01-21
|
* Added "prevent_signals" decorator/context managerIlya Pirogov2014-01-21
|
* Added FuzzyInteger support for stepIlya Pirogov2013-12-27
|
* Added SubFactory support for MongoEngine's EmbeddedDocumentIvan Miric2013-12-25
|
* django: Fix lazy loading of 'son' factories (Closes #109).Raphaël Barrois2013-11-25
|
* Fix FuzzyDecimal on Python2.6.Raphaël Barrois2013-10-29
|
* Fix FuzzyDecimal tests.Raphaël Barrois2013-10-29
|
* django: Add tests for 'pk=None' with get_or_create.Raphaël Barrois2013-10-29
| | | | See issue #61.
* Style fixes for FuzzyDecimal (Closes #94).Raphaël Barrois2013-10-29
|
* Added a Fuzzy Decimal attribute.Omer2013-10-29
|
* Added FuzzyText attribute.Jon Dufresne2013-10-29
| | | | Useful for unique model attributes where the specific value can be fuzzy.
* Fix Django sequences with abstract base models.Raphaël Barrois2013-09-25
|
* LintRaphaël Barrois2013-09-24
|
* Properly handle Sequence & inheritance (Closes #93).Raphaël Barrois2013-09-17
| | | | | There was also a nasty bug: with class FactoryB(FactoryA), FactoryB's sequence counter started at the value of FactoryA's counter when FactoryB was first called.
* Add 'factory.debug' context manager.Raphaël Barrois2013-09-17
|
* Fix mongoengine connection.Raphaël Barrois2013-09-14
|
* Use temporary mongo databases for tests.Raphaël Barrois2013-09-14
|
* Adding factory support for mongoengine (Closes #89).Jonathan Tushman2013-09-13
|
* Allow FACTORY_FOR = 'app.Model' for Django (Closes #66).Raphaël Barrois2013-08-28
|
* More fixes to testsv2.1.2Raphaël Barrois2013-08-14
|
* Fix setup.py post-setuptools/distribute merge.Raphaël Barrois2013-08-14
|
* Make ABSTRACT_FACTORY optional (Closes #74)Raphaël Barrois2013-08-13
| | | | | | | | It will be automatically set to True if neither the Factory subclass nor its parents define a FACTORY_FOR argument. It can also be set on a Factory subclass to prevent it from being called.
* Fix default color for factory.django.ImageFieldRaphaël Barrois2013-07-02
|
* tests: Safer againt not-installed Django.Raphaël Barrois2013-06-27
|
* Get safe against missing PIL.Raphaël Barrois2013-06-27
|
* Add factory.django.ImageField (Closes #52).Raphaël Barrois2013-06-27
|