summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Refs #26167 -- Added @skipUnlessDBFeature('supports_expression_indexes') to ↵masterTim Graham2021-03-081-0/+1
| | | | | a test. Failure observed on CockroachDB.
* Fixed #32517 -- Made OrderedSet reversible.Diego Lima2021-03-081-1/+6
| | | | Refs #32516.
* Fixed #24141 -- Added QuerySet.contains().Johan Schiff2021-03-063-0/+69
|
* Fixed #32489 -- Added iter_test_cases() to iterate over a TestSuite.Chris Jerdonek2021-03-051-0/+81
| | | | | | This also makes partition_suite_by_type(), partition_suite_by_case(), filter_tests_by_tags(), and DiscoverRunner._get_databases() to use iter_test_cases().
* Fixed #32494 -- Adjusted system check for raw_id_fields to warn about ↵Hasan Ramezani2021-03-041-0/+12
| | | | Field.attname.
* Corrected messages of admin checks for invalid model field names.Hasan Ramezani2021-03-042-11/+11
|
* Fixed #27854 -- Added system check for nonexistent directories in ↵Jacob Walls2021-03-031-2/+23
| | | | STATICFILES_DIRS setting.
* Used CollectionTestCase in FindersCheckTests tests.Mariusz Felisiak2021-03-031-26/+32
|
* Refs #21429 -- Added SimpleTestCase.assertNoLogs() on Python < 3.10.François Freitag2021-03-027-19/+56
|
* Refs #24121 -- Added __repr__() to URLNode.Rohith PR2021-03-021-0/+21
|
* Fixed #22640 -- Raised TypeError when instantiating model with keyword and ↵Jacob Walls2021-03-011-0/+9
| | | | positional args for the same field.
* Fixed #32456 -- Added dbshell support for specifying a password file on ↵Hasan Ramezani2021-03-011-0/+28
| | | | PostgreSQL.
* Fixed typo in assertQuerysetEqual() exception message.Jacob Walls2021-02-261-1/+4
|
* Refs #32292 -- Made dbshell do not use 'postgres' database when service name ↵Mariusz Felisiak2021-02-261-1/+1
| | | | | is set. Regression in dcb3ad3319cad5c270a1856fd5f355e37cf9d474.
* Removed unused code in admin_views tests.Jacob Walls2021-02-262-9/+0
| | | | Unused since its introduction in 7b21bfc0745f92f83a6826a3d3e58797fb74e32 and 1e4ad6f118007547c7e627f1d5bd11bfb2992bf9.
* Fixed #28607 -- Prevented duplicates in HashedFilesMixin post-processing ↵Jacob Walls2021-02-261-0/+2
| | | | | | results. Thanks Ed Morley for the implementation idea.
* Refs #24121 -- Added __repr__() to FilterExpression, Lexer, Parser, and Token.David Smith2021-02-261-1/+17
|
* Fixed #32446 -- Deprecated SERIALIZE test database setting.Simon Charette2021-02-243-10/+30
| | | | | | | | | | | Whether or not the state of a test database should be serialized can be inferred from the set of databases allowed to be access from discovered TestCase/TransactionTestCase enabling the serialized_rollback feature which makes this setting unnecessary. This should make a significant test suite bootstraping time difference on large projects that didn't explicitly disable test database serialization.
* Refs #32468 -- Added error message on invalid usage of cache decorators.Haki Benita2021-02-241-1/+28
|
* Fixed #32478 -- Included nested columns referenced by subqueries in GROUP BY ↵Simon Charette2021-02-241-0/+15
| | | | | | | | | | on aggregations. Regression in fb3f034f1c63160c0ff13c609acd01c18be12f80. Refs #31094, #31150. Thanks Igor Pejic for the report.
* Fixed #30916 -- Added support for functional unique constraints.Hannes Ljungberg2021-02-235-2/+589
| | | | Thanks Ian Foote and Mariusz Felisiak for reviews.
* Fixed #32470 -- Fixed ResolverMatch instance on test clients when ↵Marc Gibbons2021-02-232-1/+42
| | | | request.urlconf is set.
* Fixed DataUploadMaxNumberOfFieldsFormPost.test_number_exceeded().Mariusz Felisiak2021-02-231-1/+1
| | | Follow up to 0ad9fa02e07b853003b3c2244d1015620705f020.
* Fixed #32445 -- Fixed LiveServerThreadTest.test_closes_connections() for ↵Chris Jerdonek2021-02-231-5/+11
| | | | non-in-memory database on SQLite.
* Fixed #32469 -- Made assertQuerysetEqual() respect maxDiff when ordered=False.Nick Pope2021-02-221-0/+31
|
* Fixed #32458 -- Made __repr__() for Index and BaseConstraint subclasses more ↵Hannes Ljungberg2021-02-195-24/+57
| | | | consistent.
* Fixed #32256 -- Fixed migration optimization crash when swapping field names.Hasan Ramezani2021-02-191-0/+17
| | | | | | | This disables optimization of RenameField operation when an old field name is referenced in subsequent operations. Co-authored-by: InvalidInterrupt <InvalidInterrupt@users.noreply.github.com>
* Refs CVE-2021-23336 -- Updated tests and release notes for affected versions.Nick Pope2021-02-192-4/+4
|
* Refs #30231 -- Fixed SeleniumTests.test_inlines_verbose_name with headless mode.David Smith2021-02-191-0/+4
| | | | | Horizontal scrollbar doesn't appear with the headless mode on small windows, that's why window.scrollTo() is not an option for these tests even after fixing #32459.
* Fixed #32455 -- Allowed right combining Q() with boolean expressions.Hasan Ramezani2021-02-181-0/+10
|
* Refs #32455 -- Added tests for left combining an empty Q() with boolean ↵Mariusz Felisiak2021-02-181-0/+12
| | | | expressions.
* Fixed #32450 -- Fixed crash when ANDing/ORing an empty Q() with not ↵starryrbs2021-02-181-0/+8
| | | | | | pickleable Q(). Regression in bb0b6e526340e638522e093765e534df4e4393d2.
* Fixed #32443 -- Removed "shifted" CSS class when admin's sidebar is disabled.Amir Ajorloo2021-02-181-0/+1
|
* Fixed #32453 -- Added introspection of unique constraint field ordering on ↵Hannes Ljungberg2021-02-172-1/+29
| | | | | | SQLite. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed #30231 -- Fixed admin filter horizontal/vertical verbose_name generation.Teresa Partida2021-02-163-3/+115
| | | | Co-authored-by: David Smith <smithdc@gmail.com>
* Fixed #29052 -- Made test database creation preserve alias order and prefer ↵Harm Geerts2021-02-161-1/+30
| | | | | | | | | | | | | | the "default" database. This fixes flushing test databases when two aliases point to the same database. Use a list() to store the test database aliases so the order remains stable by following the order of the connections. Also, always use the "default" database alias as the first alias to accommodate `migrate`. Previously `migrate` could be executed on a secondary alias which caused truncating the "default" database.
* Fixed #26607 -- Allowed customizing formset kwargs with ↵manav0142021-02-152-0/+10
| | | | | | ModelAdmin.get_formset_kwargs(). Thanks Nick Pope for reviews.
* Refs #32417 -- Improved cleaning up and fixed isolation of staticfiles_tests ↵Chris Jerdonek2021-02-151-10/+19
| | | | tests.
* Fixed #32437 -- Fixed cleaning up ALLOWED_HOSTS in LiveServerTestCase on ↵Chris Jerdonek2021-02-121-0/+37
| | | | setUpClass() failure.
* Refs #32416 -- Added LiveServerThread.server_class to ease subclassing.Chris Jerdonek2021-02-121-0/+16
|
* Fixed #32433 -- Added error message on QuerySet.delete() following distinct().Egidijus Macijauskas2021-02-111-1/+12
|
* Refs #19102 -- Removed flaky test ↵Egidijus Macijauskas2021-02-111-14/+0
| | | | | | | | | | | Ticket19102Tests.test_ticket_19102_distinct_on. The subquery pushdown only happens because another table is involved in filter. It's not the distinct usage that causes the pushdown. The distinct('description').order_by('pk') expression is not valid because SELECT DISTINCT ON must match initial ORDER BY expressions which is not the case here.
* Fixed #32421 -- Made admindocs ModelDetailView show model cached properties.Ramon Saraiva2021-02-112-0/+9
|
* Fixed #32355 -- Dropped support for Python 3.6 and 3.7Mariusz Felisiak2021-02-1011-116/+21
|
* Fixed #32145 -- Improved makemessages error message when app's locale ↵Josh Santos2021-02-091-2/+6
| | | | directory doesn't exist.
* Fixed #32425 -- Fixed adding nullable field with default on MySQL.Jordan Bae2021-02-091-0/+27
| | | | Thanks Simon Charette for the review.
* Fixed #28216 -- Added next_page/get_default_redirect_url() to LoginView.ThinkChaos2021-02-082-2/+36
|
* Refs #32394 -- Changed STATIC_URL/MEDIA_URL to relative paths in tests and ↵Markus Holtermann2021-02-068-11/+11
| | | | docs where appropriate.
* Fixed #32411 -- Fixed __icontains lookup for JSONField on MySQL.Hasan Ramezani2021-02-051-0/+6
|
* Fixed #32420 -- Fixed detecting primary key values in deserialization when ↵Mikolaj Rybinski2021-02-052-2/+35
| | | | PK is also a FK.