summaryrefslogtreecommitdiff
path: root/docs
Commit message (Collapse)AuthorAge
* Merge tag 'v2.7.0' into debian/unstableChristopher Baines2016-05-11
|\ | | | | | | Release of factory_boy 2.7.0
| * Release version 2.7.0v2.7.0Raphaël Barrois2016-04-19
| |
| * Fix typoJeff Widman2016-04-19
| |
| * Add documentation and test for subfactory using "factory_parent" attributeSamuel Paccoud2016-04-03
| | | | | | | | | | | | | | | | | | Add documentation on how to use a LazyAttribute in a SubFactory and poke the "factory_parent" attribute to indirectly derive the value of a field on the child factory from a field on the parent factory. This commit adds an example to recipes that explains how it can be done. It also adds a test to make sure that this feature continues to work as is now described in the documentation.
| * Plan for 2.7.0 release.Raphaël Barrois2016-04-02
| |
| * Add Traits (Closes #251).Raphaël Barrois2016-04-02
| | | | | | | | | | | | Based on a boolean flag, those will alter the definitions of the current factory, taking precedence over pre-defined behavior but overridden by callsite-level arguments.
| * Add a new Params section to factories.Raphaël Barrois2016-04-02
| | | | | | | | | | | | | | | | | | | | | | | | This handles parameters that alter the declarations of a factory. A few technical notes: - A parameter's outcome may alter other parameters - In order to fix that, we perform a (simple) cyclic definition detection at class declaration time. - Parameters may only be either naked values or ComplexParameter subclasses - Parameters are never passed to the underlying class
| * docs: Del obsolete note on abstract Django modelsRaphaël Barrois2016-03-12
| | | | | | | | | | | | | | That section described code required when factory_boy was automagically computing sequence numbers from the current PK value. Closes #280
| * docs: Add a proper recipe for dumping to dictRaphaël Barrois2016-02-23
| | | | | | | | This trick should help with #68.
| * Add note about deprecate/remove Fuzzy attributesJeff Widman2016-02-21
| | | | | | | | | | | | Full discussion in https://github.com/rbarrois/factory_boy/issues/271 Wanted to get something mentioned in the docs immediately.
| * Merge pull request #252 from jmcarp/patch-1Raphaël Barrois2016-02-21
| |\ | | | | | | Clarify sequence behavior on inheritance
| | * Clarify sequence behavior on inheritanceJoshua Carp2015-11-23
| | | | | | | | | Sequences are only shared via inheritance if the model of the subclass is the same as or a subclass of the model of the parent class. Clarify the docs on this point.
| * | Merge pull request #267 from bors-ltd/masterRaphaël Barrois2016-02-14
| |\ \ | | | | | | | | factory: LazyFunction to just call a function in the simplest case
| | * | factory: LazyFunction to just call a function in the simplest caseHervé Cauwelier2016-02-12
| | | | | | | | | | | | | | | | No need to wrap it in a lambda to strip the object argument from LazyAttribute or the sequence argument from Sequence.
| * | | Remove a nonexisting argumen "tz"yamaneko2016-02-13
| |/ /
| * | Add ChangeLog for 2.6.1Raphaël Barrois2016-02-10
| | |
* | | Merge tag '2.6.1' into debian/unstableOndřej Nový2016-02-14
|\| | | | | | | | | | | Release of factory_boy 2.6.1
| * | Merge pull request #258 from mluszczyk/patch-1Raphaël Barrois2016-02-09
| |\ \ | | | | | | | | Fixed spelling of word "independent".
| | * | Fixed spelling.mluszczyk2015-12-28
| | |/
| * | Clarify precedence on factory.django.FileField (Closes #257).Raphaël Barrois2016-02-10
| | | | | | | | | | | | | | | | | | | | | When both ``from_file`` and ``filename`` are provided, ``filename`` takes precedence. Thanks to @darkowic for spotting this :)
| * | doc: Use ReadTheDocs theme for local doc builds.Raphaël Barrois2016-02-09
| | |
| * | Clarify the use of SelfAttribute in RelatedFactory (Closes #264)Raphaël Barrois2016-02-09
| | |
| * | optional forced flush on SQLAlchemyModelFactoryAlejandro2016-01-07
| |/ | | | | | | fixes rbarrois/factory_boy#81
| * Fix obsolete text in docs (Closes #245, #248, #249).Raphaël Barrois2015-11-07
| | | | | | | | Thanks a lot to Jeff Widman for spotting them!
| * docs: Note 2.6.0 release date.Raphaël Barrois2015-10-21
| |
| * Ideas: I want to be able to nest declarationsRaphaël Barrois2015-10-20
| | | | | | | | Closes #140, as this won't be implemented in the next few weeks.
| * Update note on django's unsaved instance checksRaphaël Barrois2015-10-20
| | | | | | | | | | | | | | This note was added to document a regression in Django 1.8.0; the regression has been fixed in 1.8.4. Closes #232
| * mogo: Stop using deprecated .new (Closes #219)Raphaël Barrois2015-10-20
| | | | | | | | | | | | This method has been deprecated in `mogo.model.Model` since 2012. Thanks to @federicobond for spotting this!
| * Docs: Fix typo in M2M recipes (Closes #226)Raphaël Barrois2015-10-20
| | | | | | | | As spotted by @stephane, thanks!
| * Lazy load django's get_model (Closes #228).Raphaël Barrois2015-10-20
| | | | | | | | | | | | Loading this function will, on pre-1.8 versions, load Django settings. We'll lazy-load it to avoid crashes when Django hasn't been configured yet (e.g in auto-discovery test setups).
| * Docs: Document Faker.add_provider (Closes #218)Raphaël Barrois2015-10-20
| |
| * Docs: 'import factory.fuzzy' as required (See #138).Raphaël Barrois2015-07-25
| |
| * Fix mute_signals behavior for signals with cachingIlya Baryshev2015-07-05
| | | | | | | | | | | | | | | | | | Connecting signals (with use_caching=True) inside mute_signals was breaking unmute on exit. Paused receivers were not running. This was caused by signal cache not being restored after unpatching. Workaround is to clear signal cache on exit. Fixes #212
| * Improve ORM layer import paths (Closes #186).Raphaël Barrois2015-05-31
| | | | | | | | | | | | | | | | | | You may now use the following code: import factory factory.alchemy.SQLAlchemyModelFactory factory.django.DjangoModelFactory factory.mongoengine.MongoEngineFactory
| * Properly handle custom Django managers (Closes #201).Raphaël Barrois2015-05-31
| | | | | | | | | | | | The actual behavior of Django with custom managers and inherited abstract models is rather complex, so this had to be adapted to the actual Django source code.
| * Docs: fix minor typo.Raphaël Barrois2015-05-31
| | | | | | | | As spotted by @proofit404
| * Add lazy loading to factory.Iterator.Raphaël Barrois2015-05-24
| | | | | | | | | | | | | | | | | | | | | | factory.Iterator no longers begins iteration of its argument on declaration, since this behavior may trigger database query when that argument is, for instance, a Django queryset. The ``factory.Iterator``'s argument will only be called when the containing ``Factory`` is first evaluated; this means that factories using ``factory.Iterator(models.MyThingy.objects.all())`` will no longer call the database at import time.
| * Add factory.Faker()Raphaël Barrois2015-05-22
| | | | | | | | | | This relies on the ``fake-factory`` library, and provides realistic random values for most field types.
| * Fix typo in docs/fuzzy (Closes #207).Raphaël Barrois2015-05-20
| | | | | | | | Thanks to @nikolas for spotting it!
| * Add Meta.rename to handle name conflicts (See #206).Raphaël Barrois2015-05-20
| | | | | | | | | | | | Define ``Meta.rename = {'attrs': 'attributes'}`` if your model expects a ``attributes`` kwarg but you can't define it since it's already reserved by the ``Factory`` class.
| * Clarify .build() issue with Django>1.8 (Ref #198).Raphaël Barrois2015-04-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From 1.8 onwards, this crashes: >>> a = MyModel() # Don't save >>> b = MyOtherModel(fkey_to_mymodel=a) In turn, it breaks: class MyModelFactory(factory.django.DjangoModelFactory): class Meta: model = MyModel class MyOtherModelFactory(factory.django.DjangoModelFactory): class Meta: model = MyOtherModel fkey_to_mymodel = factory.SubFactory(MyModelFactory) MyOtherModelFactory.build() # Breaks The error message is: Cannot assign "MyModel()": "MyModel" instance isn't saved in the database. See https://code.djangoproject.com/ticket/10811 for details.
| * Release v2.5.2v2.5.2Raphaël Barrois2015-04-21
| |
| * Fix minor typo (Closes #194).Raphaël Barrois2015-04-14
| | | | | | | | Thanks to @DasAllFolks for spotting it!
| * Release v2.5.1v2.5.1Raphaël Barrois2015-03-27
| |
| * Support declarations in FileField/ImageField.Raphaël Barrois2015-03-27
| | | | | | | | Previously, the declarations (``factory.Sequence`` & co) weren't properly computed.
| * Respect default manager in DjangoModelFactory (Closes #192).Raphaël Barrois2015-03-27
| | | | | | | | | | The previous version tries to use ``cls._default_manager`` all the time, which breaks with ``manager.using(db_name)``.
| * Add upgrade instructions for 2.5.0Raphaël Barrois2015-03-27
| |
| * Clarify impacts of 2.5.0.Raphaël Barrois2015-03-26
| |
| * Update header years.Raphaël Barrois2015-03-26
| |
| * Get ready for next release.Raphaël Barrois2015-03-26
| |