1
0
mirror of https://github.com/django/django.git synced 2024-12-24 01:55:49 +00:00
django/tests/model_fields
Mariusz Felisiak c5cd878382
Refs #33476 -- Refactored problematic code before reformatting by Black.
In these cases Black produces unexpected results, e.g.

def make_random_password(
    self,
    length=10,
    allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789',
):

or

cursor.execute("""
SELECT ...
""",
    [table name],
)
2022-02-03 11:20:46 +01:00
..
__init__.py
4x8.png
8x4.png
models.py Refs #31369 -- Removed models.NullBooleanField per deprecation timeline. 2021-01-14 17:50:04 +01:00
test_autofield.py Fixed #32620 -- Allowed subclasses of Big/SmallAutoField for DEFAULT_AUTO_FIELD. 2021-04-08 13:17:08 +02:00
test_binaryfield.py Refs #27804 -- Used subTest() in BinaryFieldTests.test_set_and_retrieve. 2019-06-07 06:04:56 +02:00
test_booleanfield.py Refs #31369 -- Removed models.NullBooleanField per deprecation timeline. 2021-01-14 17:50:04 +01:00
test_charfield.py Fixed #32178 -- Allowed database backends to skip tests and mark expected failures. 2020-12-10 18:00:57 +01:00
test_datetimefield.py Fixed #31235 -- Made assertQuerysetEqual() compare querysets directly. 2020-11-06 09:24:50 +01:00
test_decimalfield.py Fixed #33033 -- Prevented models.DecimalField from accepting NaN values. 2021-09-28 13:20:14 +02:00
test_durationfield.py Fixed #30400 -- Improved typography of user facing strings. 2019-06-28 16:46:18 +02:00
test_field_flags.py Simplified imports from django.db and django.contrib.gis.db. 2020-02-04 13:20:06 +01:00
test_filefield.py Fixed #32718 -- Relaxed file name validation in FileField. 2021-05-13 08:53:44 +02:00
test_filepathfield.py Fixed #29529 -- Allowed models.fields.FilePathField to accept a callable path. 2019-05-02 11:11:56 +02:00
test_floatfield.py Fixed #28393 -- Added helpful error messages for invalid AutoField/FloatField/IntegerField values. 2019-08-05 08:41:29 +02:00
test_foreignkey.py Refs #32508 -- Raised Type/ValueError instead of using "assert" in django.db.models. 2021-07-15 11:43:33 +02:00
test_genericipaddressfield.py Fixed #26557 -- Converted empty strings to None when saving GenericIPAddressField. 2016-04-29 10:11:49 -04:00
test_imagefield.py Bumped minimum isort version to 5.1.0. 2020-07-30 10:58:59 +02:00
test_integerfield.py Fixed #32178 -- Allowed database backends to skip tests and mark expected failures. 2020-12-10 18:00:57 +01:00
test_jsonfield.py Refs #33476 -- Refactored problematic code before reformatting by Black. 2022-02-03 11:20:46 +01:00
test_manytomanyfield.py Refs #32508 -- Raised Type/ValueError instead of using "assert" in django.db.models. 2021-07-15 11:43:33 +02:00
test_promises.py Refs #31369 -- Removed models.NullBooleanField per deprecation timeline. 2021-01-14 17:50:04 +01:00
test_slugfield.py Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
test_textfield.py Fixed #32178 -- Allowed database backends to skip tests and mark expected failures. 2020-12-10 18:00:57 +01:00
test_uuid.py Fixed random models_fields.test_uuid.TestQuerying failures. 2019-12-27 15:25:50 +01:00
tests.py Fixed #33441 -- Restored immutability of models.Field.__hash__(). 2022-01-14 07:00:48 +01:00