summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2020-05-08Fixed #31528 -- Made collectstatic management command run staticfiles checks.Hasan Ramezani
2020-05-08Fixed tests isolation in logging_tests.François Freitag
The SetupConfigureLogging test case does not restore the logging config after its execution. It leaves the logger django.request with an empty handlers array. This also removes the last use of LOGGING_CONFIG, introduced in 43503b093a35ca4707c16d865f10929960bfa0b8.
2020-05-08Fixed #31157 -- Fixed displaying read-only JSONField values in admin.dbxnr
2020-05-08Refs #31157 -- Added tests for display_for_field() with empty JSONField.dbxnr
2020-05-08Added tests for loaddata with gzip/bzip2 compressed fixtures.Paolo Melchiorre
Co-authored-by: Adam Johnson <me@adamj.eu>
2020-05-08Fixed #12990, Refs #27694 -- Added JSONField model field.sage
Thanks to Adam Johnson, Carlton Gibson, Mariusz Felisiak, and Raphael Michel for mentoring this Google Summer of Code 2019 project and everyone else who helped with the patch. Special thanks to Mads Jensen, Nick Pope, and Simon Charette for extensive reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-05-08Refs #12990 -- Bumped mysqlclient requirement to >= 1.4.0.Mariusz Felisiak
MySQLdb.constants.FIELD_TYPE.JSON was added in mysqlclient 1.4.0rc2.
2020-05-07Completed test coverage for ExclusionConstraint.Mariusz Felisiak
Dropping exclusion constraints was untested.
2020-05-06Fixed #31515 -- Made ASGIHandler dispatch lifecycle signals with thread ↵Carlton Gibson
sensitive.
2020-05-06Fixed a/an typos in "SQL" usage.Adam Johnson
2020-05-05Made DateTimePickerShortcutsSeleniumTests.test_date_time_picker_shortcuts() ↵Mariusz Felisiak
less flaky. Moved picking the current time closer to the actual click.
2020-05-05Fixed #31538 -- Fixed Meta.ordering validation lookups that are not transforms.Mariusz Felisiak
Regression in 440505cb2cadbe1a5b9fba246bcde6c04f51d07e. Thanks Simon Meers for the report.
2020-05-05Fixed #31534 -- Deprecated django.conf.urls.url().David Smith
2020-05-04Refs #30573 -- Rephrased "Of Course" and "Obvious(ly)" in documentation and ↵Adam Johnson
comments.
2020-05-04Corrected opts argument of colorize in ↵Rasmus Wriedt Larsen
TermColorTests.test_colorize_empty_text().
2020-05-04Refs #30372 -- Stopped watching built-in Django translation files by ↵Tom Forbes
auto-reloader.
2020-05-04Changed `'%s' % value` pattern to `str(value)`.Nick Pope
2020-05-01Removed unnecessary inner methods in CreatesuperuserManagementCommandTestCase.François Freitag
2020-05-01Fixed #31455 -- Added support for deferrable exclusion constraints on ↵Ian Foote
PostgreSQL.
2020-04-30Fixed #20581 -- Added support for deferrable unique constraints.Ian Foote
2020-04-30Removed unused __str__() methods in tests models.Mariusz Felisiak
Follow up to 6461583b6cc257d25880ef9a9fd7e2125ac53ce1.
2020-04-30Fixed #31521 -- Skipped test_parsing_rfc850 test on 32-bit systems.Hasan Ramezani
2020-04-29Refs #27468 -- Made user sessions use SHA-256 algorithm.Mariusz Felisiak
2020-04-29Refs #30400 -- Improved typography of user facing strings in admin changelist.Jon Dufresne
2020-04-29Added tests for saving with pending actions in admin changelist.Jon Dufresne
2020-04-28Fixed #29249 -- Made JSON and YAML serializers use Unicode by default.Hasan Ramezani
2020-04-28Refs #29249 -- Added tests for serializing Unicode data with XML serializer.Hasan Ramezani
2020-04-28Changed django.forms.ValidationError imports to ↵François Freitag
django.core.exceptions.ValidationError. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-04-28Fixed #31517 -- Fixed HashedFilesMixin.hashed_name() if hash of the file is ↵Richard Campen
None.
2020-04-28Added test for squashmigrations' output.François Freitag
2020-04-27Removed unnecessary tuple wrapping of single format string argument.François Freitag
2020-04-27Removed unnecessary capturing/hiding of stdout/stderr in various tests.François Freitag
2020-04-27Disabled management commands output with verbosity 0 in ↵François Freitag
test_regression_22823_unmigrated_fk_to_migrated_model.
2020-04-25Removed unnecessary capturing of stdout in ↵François Freitag
test_makemigrations_non_interactive_not_null_addition.
2020-04-24Refs #31369 -- Deprecated models.NullBooleanField in favor of ↵Tim Schilling
BooleanField(null=True).
2020-04-23Fixed #29224 -- Fixed removing index_together indexes if exists ↵David Wobrock
unique_together constraint on the same fields.
2020-04-23Fixed #31500 -- Fixed detecting of unique fields in QuerySet.in_bulk() when ↵Hannes Ljungberg
using Meta.constraints. Detection of unique fields now takes into account non-partial unique constraints.
2020-04-22Refs #29892 -- Fixed selenium test test_inline_formset_error_input_border on ↵Jon Dufresne
Firefox. Firefox does not include shorthand properties, such as "border", in the computed CSS properties object. This is documented at MDN: https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle > The returned CSSStyleDeclaration object contains active values for CSS > property longhand names. For example, border-bottom-width instead of > the border-width and border shorthand property names. It is safest to > query values with only longhand names like font-size. Shorthand names > like font will not work with most browsers. This difference between Firefox and Chrome is also discussed in the stackoverflow thread at: https://stackoverflow.com/a/32296604
2020-04-22Completed test coverage for forms.RegexField.David Smith
2020-04-22Fixed #31499 -- Stored ModelState.fields into a dict.Simon Charette
This allows the removal of its O(n) .get_field_by_name method and many other awkward access patterns. While fields were initially stored in a list to preserve the initial model definiton field ordering the auto-detector doesn't take field ordering into account and no operations exists to reorder fields of a model. This makes the preservation of the field ordering completely superflous because field reorganization after the creation of the model state wouldn't be taken into account.
2020-04-22Refs #31499 -- Ignored field ordering to determine ModelState equality.Simon Charette
2020-04-21Fixed backends.oracle.test_operations.Mariusz Felisiak
Using unittest.TestCase doesn't work properly when we perform db queries. Moreover introspection is extremely slow on Oracle without limiting models to a "backends" app. Follow up to 8bcca47e8356521f52f0738d9633befd53007cae.
2020-04-21Fixed #31479 -- Added support to reset sequences on SQLite.Jon Dufresne
2020-04-21Refs #30591 -- Adjusted table rebuild for non-pk relationship on SQLite.Simon Charette
The existing code was only accounting for primary key changes and not all unique key fields that can be referenced.
2020-04-21Fixed #31064 -- Recreated auto-created many-to-many tables on primary key ↵Simon Charette
data type change on SQLite. Both local and remote auto-created many-to-many relationships were affected.
2020-04-21Removed redundant import in tests/migrations/test_operations.py.Simon Charette
2020-04-20Capitalized Unicode in docs, strings, and comments.Jon Dufresne
2020-04-20Added assertions for an empty stdout to CoreCommandsNoOutputTests.Jon Dufresne
2020-04-20Fixed #31474 -- Made QuerySet.delete() not return the number of deleted ↵Hasan Ramezani
objects if it's zero.
2020-04-20Disabled management commands output with verbosity 0 in various tests.François Freitag
Instead of capturing the command output and discard it immediately, tell the command not to log.