aboutsummaryrefslogtreecommitdiff
path: root/factory/alchemy.py
Commit message (Collapse)AuthorAge
* optional forced flush on SQLAlchemyModelFactoryAlejandro2016-01-07
| | | | fixes rbarrois/factory_boy#81
* 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
* 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()``.
* Rename 'target' to 'model'.Raphaël Barrois2014-05-18
|
* Migrate factory.alchemy to class MetaRaphaël Barrois2014-05-18
|
* Remove duplicate SQLAlchemyModelFactory (Closes #83).Raphaël Barrois2013-08-28
|
* Small next sequence refactoringrcommande2013-06-20
|
* Fixed SQLAlchemy tests on Python32minimumserious2013-06-20
|
* Cleaningminimumserious2013-06-20
|
* Move SQLAlchemyModelFactory in its own moduleminimumserious2013-06-20