summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2018-11-03Increased test coverage of django.utils.http.Hasan Ramezani
2018-11-03Fixed #29883 -- Added selenium hub support to runtests.py.Tom Forbes
2018-11-01Fixed #29886 -- Fixed unaccent lookup when PostgreSQL's ↵Jayantha Gumballi
standard_conforming_strings option is off. Thanks Tom McClure for the patch.
2018-10-31Fixed #29890 -- Fixed FileSystemStorage crash if concurrent saves try to ↵Tim Graham
create the same directory. Regression in 632c4ffd9cb1da273303bcd8005fff216506c795.
2018-10-31Fixed #29901 -- Allowed overriding an ↵Javier Matos Odut
autocomplete/raw_id_fields/radio_fields widget with ModelAdmin.get_formset().
2018-10-30Fixed #29783 -- Added app label validation to showmigrations command.Junyoung
2018-10-30Capitalized SecurityMiddleware headers for consistency with other headers.Artur Juraszek
(No behavior change since HTTP headers are case insensitive.)
2018-10-30Increased test coverage of django/views/generic/dates.py.Hasan Ramezani
2018-10-30Fixed #29866 -- Made DiscoverRunner do tests tear down if running checks or ↵Jayden Kneller
tests raises an exception.
2018-10-30Refs #29868 -- Prevented name collisions between test constraints on Oracle.Simon Charette
2018-10-29Fixed #29547 -- Added support for partial indexes.Mads Jensen
Thanks to Ian Foote, Mariusz Felisiak, Simon Charettes, and Markus Holtermann for comments and feedback.
2018-10-29Fixed #29903 -- Added error message for invalid WeekArchiveView week_format.Hasan Ramezani
2018-10-29Fixed #29897 -- Fixed autodetector's swappable MTI dependency resolution.Simon Charette
Thanks Steven Ganz for the detailed report.
2018-10-29Fixed #29868 -- Retained database constraints on SQLite table rebuilds.Simon Charette
Refs #11964. Thanks Scott Stevens for testing this upcoming feature and the report.
2018-10-28Fixed #29896 -- Fixed incorrect Model.save() cache relation clearing for ↵Tim Graham
foreign keys that use to_field. Regression in ee49306176a2d2f1751cb890bd607d42c7c09196.
2018-10-27Added test coverage for views.generic.dates.MonthMixin.get_month() KeyError ↵Hasan Ramezani
branch.
2018-10-27Fixed #28606 -- Deprecated CachedStaticFilesStorage.Tim Graham
2018-10-25Completed test coverage of views.defaults.bad_request().Hasan Ramezani
2018-10-25Fixed #29534 -- Made dbshell use rlwrap on Oracle if available.Mariusz Felisiak
2018-10-25Fixed #29827 -- Fixed reuse of test databases with --keepdb on MySQL.Sergey Fedoseev
Regression in e1253bc26facfa1d0fca161f43925e99c2591ced.
2018-10-24Fixed #29869 -- Made UUIDField.to_python() convert integers.Sanyam Khurana
2018-10-24Fixed #29721 -- Ensured migrations are applied and recorded atomically.Sanyam Khurana
2018-10-24Refs #11964 -- Removed raw SQL from and cleaned up constraint operation tests.Simon Charette
2018-10-23Removed obsolete and flaky GeoIP tests.Tom Forbes
2018-10-23Completed test coverage of views.static.directory_name().Hasan Ramezani
2018-10-23Fixed #29831 -- Added validation for makemigrations --name.Prabakaran Kumaresshan
2018-10-22Fixed #29830 -- Fixed loss of custom utf-8 body encoding in mails.jannschu
2018-10-22Fixed #29860 -- Allowed BaseValidator to accept a callable limit_value.buzzi
2018-10-22Fixed #27595 -- Made ForeignKey.get_col() follow target chains.Simon Charette
Previously, foreign relationships were followed only one level deep which prevents foreign keys to foreign keys from being resolved appropriately. This was causing issues such as improper database value conversion for UUIDField on SQLite because the resolved expression's output field's internal type wasn't correct. Added tests to make sure unlikely foreign reference cycles don't cause recursion errors. Refs #24343. Thanks oyooyo for the report and Wayne Merry for the investigation.
2018-10-21Fixed #29847 -- Ensured proper ordering in queries.Florian Apolloner
Even though good databases tend to keep the result sorted by the/one window expression and the planners are smart enough to not resort if not required, it is not valid to rely on this. MariaDB specifically did return whatever order it wanted, which is completely okay. Now we sort towards the expected data for all databases.
2018-10-21Fixed a failing test when the source directory is on a readonly fs.Florian Apolloner
2018-10-21Fixed #29870 -- Added DurationField introspection for Oracle and PostgreSQL.Mariusz Felisiak
Thanks Tim Graham for the review.
2018-10-17Fixed #29838 -- Fixed crash when combining Q objects with __in lookups and ↵aspalding
lists. Regression in fc6528b25ab1834be1a478b405bf8f7ec5cf860c.
2018-10-17Refs #29838 -- Fixed make_hashable() for values that have lists or dicts ↵aspalding
nested in tuples. And for non-hashable values that are iterable, e.g. sets.
2018-10-17Moved make_hashable() to django.utils and added tests.aspalding
2018-10-17Fixed #21171 -- Avoided starting a transaction when a single (or atomic ↵Florian Apolloner
queries) are executed. Checked the following locations: * Model.save(): If there are parents involved, take the safe way and use transactions since this should be an all or nothing operation. If the model has no parents: * Signals are executed before and after the previous existing transaction -- they were never been part of the transaction. * if `force_insert` is set then only one query is executed -> atomic by definition and no transaction needed. * same applies to `force_update`. * If a primary key is set and no `force_*` is set Django will try an UPDATE and if that returns zero rows it tries an INSERT. The first case is completly save (single query). In the second case a transaction should not produce different results since the update query is basically a no-op then (might miss something though). * QuerySet.update(): no signals issued, single query -> no transaction needed. * Model/Collector.delete(): This one is fun due to the fact that is does many things at once. Most importantly though: It does send signals as part of the transaction, so for maximum backwards compatibility we need to be conservative. To ensure maximum compatibility the transaction here is removed only if the following holds true: * A single instance is being deleted. * There are no signal handlers attached to that instance. * There are no deletions/updates to cascade. * There are no parents which also need deletion.
2018-10-16Refs #23919 -- Removed a stray object-inheritance.Mads Jensen
Follow up to 081e78716085ff4af08604af5d084c8fd27c0730.
2018-10-15Fixed #29817 -- Deprecated settings.FILE_CHARSET.Jon Dufresne
2018-10-15Refs #27829 -- Added warning for settings.DEFAULT_CONTENT_TYPE usage outside ↵Jon Dufresne
of Django.
2018-10-15Fixed #29725 -- Removed unnecessary join in QuerySet.count() and exists() on ↵oliver
a many-to-many relation.
2018-10-15Fixed #29845 -- Fixed Cast crash on MySQL when casting to DecimalField.Mariusz Felisiak
2018-10-12Added a urlize test for wrapping characters.Tim Graham
2018-10-11Fixed #29814 -- Added support for NoneType serialization in migrations.Patrik Sletmo
2018-10-11Fixed #29836 -- Bumped required cx_Oracle to 6.0.Mariusz Felisiak
2018-10-10Refs #27795 -- Removed force_bytes() usage from django/utils/http.py.Jon Dufresne
django.utils.http.urlsafe_base64_encode() now returns a string, not a bytestring. Since URLs are represented as strings, urlsafe_base64_encode() should return a string. All uses immediately decoded the bytestring to a string anyway. As the inverse operation, urlsafe_base64_decode() accepts a string.
2018-10-09Completed FixedOffset test coverage.Hasan Ramezani
2018-10-09Capitalized "Python" in docs and comments.Jon Dufresne
2018-10-09Fixed postgres_tests.test_signals.OIDTests when run in isolation.Jon Dufresne
2018-10-04Fixed #29775 -- Fixed URL converters in a nested namespaced path.Eric Brandwein
When using include() without namespaces of some urlpatterns that have an include() with namespace, the converters of the parent include() weren't being used to convert the arguments of reverse().
2018-10-04Used skip(If|Unless)DBFeature in transactions tests.Jon Dufresne