summaryrefslogtreecommitdiff
path: root/tests/test_fuzzy.py
Commit message (Collapse)AuthorAge
* Fix "no FloatOperation test", invalid until PY3Raphaël Barrois2016-02-10
|
* 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.
* Update header years.Raphaël Barrois2015-03-26
|
* 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)``.
* Added FuzzyInteger support for stepIlya Pirogov2013-12-27
|
* Fix FuzzyDecimal on Python2.6.Raphaël Barrois2013-10-29
|
* Fix FuzzyDecimal tests.Raphaël Barrois2013-10-29
|
* 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.
* Add FuzzyDateTime/FuzzyNaiveDateTime.Raphaël Barrois2013-04-21
|
* Add FuzzyDateSaul Shanabrook2013-04-21
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Add factory.fuzzy (Closes #41).Raphaël Barrois2013-04-11