summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* 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
* Refactor: move error defs to a dedicated module.Raphaël Barrois2016-04-02
|
* 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
* django: Clarify behavior around ``abstract=True``Raphaël Barrois2016-03-12
| | | | See issue #280.
* Merge pull request #278 from bors-ltd/masterRaphaël Barrois2016-03-04
|\ | | | | Stop advertising factory_boy supports Python 2.6
| * Stop advertising factory_boy supports Python 2.6Hervé Cauwelier2016-03-04
| | | | | | | | Support was already gone with literal sets.
* | docs: Add a proper recipe for dumping to dictRaphaël Barrois2016-02-23
| | | | | | | | This trick should help with #68.
* | Add test for "build as dict" trick (See #68).Raphaël Barrois2016-02-23
| |
* | 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.
* | | Switch Travis builds to the container-based infrastructureJeff Widman2016-02-19
| | | | | | | | | https://docs.travis-ci.com/user/migrating-from-legacy/
* | | fuzzy: Minor cleanup in BaseFuzzyDateTimeRaphaël Barrois2016-02-15
| | | | | | | | | | | | | | | The ``_now()`` method wasn't declared on the base class, only in its subclasses.
* | | 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.
* | | Merge pull request #269 from yamaneko1212/masterRaphaël Barrois2016-02-14
|\ \ \ | |/ / |/| | Remove a nonexisting argument "tz" from FuzzyDateTime docs
| * | Remove a nonexisting argumen "tz"yamaneko2016-02-13
|/ /
* | Add ChangeLog for 2.6.1Raphaël Barrois2016-02-10
| |
* | Release v2.6.1v2.6.12.6.1Raphaël Barrois2016-02-10
| |
* | Document mailing-listRaphaël Barrois2016-02-10
| |
* | Update README: support 2.6-3.5Raphaël Barrois2016-02-10
| |
* | Announce support for Python3.5Raphaël Barrois2016-02-10
| |
* | Switch badges to shields.ioRaphaël Barrois2016-02-10
| |
* | Merge pull request #129 from anentropic/masterRaphaël Barrois2016-02-09
|\ \ | | | | | | Make safe repr more safe
| * | Update utils.pyanentropic2014-03-13
| | |
| * | Make safe repr more safeanentropic2014-02-03
| | |
* | | Merge pull request #258 from mluszczyk/patch-1Raphaël Barrois2016-02-09
|\ \ \ | | | | | | | | Fixed spelling of word "independent".
| * | | Fixed spelling.mluszczyk2015-12-28
| | |/ | |/|
* | | Merge remote-tracking branch 'minjung/flushing_sqlalchemy_factory'Raphaël Barrois2016-02-10
|\ \ \
| * | | added unittests for rbarrois/factory_boy#81Alejandro2016-01-07
| | | |
| * | | optional forced flush on SQLAlchemyModelFactoryAlejandro2016-01-06
| |/ / | | | | | | | | | fixes rbarrois/factory_boy#81
* | | Update testing targets (Closes #265)Raphaël Barrois2016-02-10
| | | | | | | | | | | | Thanks to @jeffwidman for suggesting this!
* | | Fix "no FloatOperation test", invalid until PY3Raphaël Barrois2016-02-10
| | |
* | | 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 :)
* | | fuzzy: Fix decimal.FloatOperation warning (Closes #261)Raphaël Barrois2016-02-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Under Python 2.7+, the previous versions was directly casting fuzzy Decimal values into a float, which led to warnings in code trying to avoid such conversions in its tested code. Since we're just building random values, that behavior led to false positives or required jumping through weird hoops whenever a FuzzyDecimal was used. We now go trough a ``str()`` call to avoid such warnings.
* | | 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
* | | Clarify the (dis)advantages of randomized tests.Raphaël Barrois2016-01-07
|/ / | | | | | | | | | | As noted in #259, fully random tests have some issues, notably possibly flaky builds: it is quite helpful to be able to choose the random seeds used by factory_boy and friends.
* | Fix obsolete text in docs (Closes #245, #248, #249).Raphaël Barrois2015-11-07
| | | | | | | | Thanks a lot to Jeff Widman for spotting them!
* | mogo: Stop using .new, continued.Raphaël Barrois2015-10-21
| | | | | | | | | | | | From dc7d02095fff, spotted by @federicobond too. See #219.
* | docs: Note 2.6.0 release date.Raphaël Barrois2015-10-21
| |
* | Release v2.6.0v2.6.0Raphaël Barrois2015-10-20
| |
* | 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.
* | Tox isn't used, remove its config file.Raphaël Barrois2015-10-20
| |
* | 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
| |