Mariusz Felisiak
f099ef3ef5
Added parallel argument to DiscoverRunner docs.
...
Follow up to cd9fcd4e80
.
2021-03-19 08:03:57 +01:00
Mariusz Felisiak
fc6fba0aa9
Corrected DiscoverRunner.build_suite() signature.
...
Follow up to 9012833af8
.
2021-03-19 08:03:57 +01:00
Tim Graham
2411b8b5eb
Fixed #16010 -- Added Origin header checking to CSRF middleware.
...
Thanks David Benjamin for the original patch, and Florian
Apolloner, Chris Jerdonek, and Adam Johnson for reviews.
2021-03-18 20:25:20 +01:00
Tim Graham
dba44a7a7a
Refs #16010 -- Required CSRF_TRUSTED_ORIGINS setting to include the scheme.
2021-03-18 20:00:22 +01:00
Hasan Ramezani
9bf5e9418f
Fixed #32556 -- Fixed assertHTMLEqual() to handle empty string as boolean attributes value.
2021-03-18 16:30:15 +01:00
Adam Johnson
f6713cda89
Fixed #31370 -- Added support for parallel tests with --buffer.
2021-03-18 15:30:47 +01:00
Adam Johnson
e3bca22e7e
Refs #31370 -- Made RemoteTestResult subclass unittest.TestResult.
2021-03-18 15:30:47 +01:00
Adam Johnson
92975bcd5f
Refs #31370 -- Added test for pickling RemoteTestResult.
2021-03-18 15:30:47 +01:00
Johannes Maron
03d0f12c82
Fixed #32466 -- Corrected autocomplete to_field resolution for complex cases.
...
In MTI or ForeignKey as primary key cases, it is required to fetch the attname
from the field instance on the remote model in order to reliably resolve the
to_field_name.
Co-authored-by: Johannes Maron <info@johanneshoppe.com>
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2021-03-18 11:21:23 +01:00
Johannes Maron
0b120f5d64
Refs #29138 -- Added extra tests for autocomplete FK to_field variations.
2021-03-18 11:14:18 +01:00
Hasan Ramezani
ceb4b9ee68
Fixed #32547 -- Corrected notes about validation in HTML assertions docs.
2021-03-18 10:21:49 +01:00
Jonathan Richards
00b0786de5
Fixed #32548 -- Fixed crash when combining Q() objects with boolean expressions.
2021-03-17 21:53:39 +01:00
Mariusz Felisiak
54f60bc85d
Refs #32548 -- Added tests for passing conditional expressions to Q().
2021-03-17 21:53:36 +01:00
Adam Johnson
45814af619
Fixed #32560 -- Fixed test runner with --pdb and --buffer on fail/error.
2021-03-17 20:56:09 +01:00
Jozef
6993e1bf6d
Fixed typo in docs/topics/testing/advanced.txt.
2021-03-17 18:10:33 +01:00
Tiago Honorato
4f4f770f77
Refs #24121 -- Added __repr__() to Origin and Template.
2021-03-17 07:49:55 +01:00
Mariusz Felisiak
065832eaec
Fixed #32353 -- Confirmed support for PROJ 7.X.
2021-03-16 20:22:35 +01:00
Daniyal
54d9179540
Refs #32508 -- Raised ImproperlyConfigured instead of using "assert" in SessionStorage.
2021-03-16 09:01:49 +01:00
Yuri Konotopov
330bc402a8
Fixed #32546 -- Avoided Meta.ordering columns in GROUP BY clauses.
...
Follow up to 0ddb4ebf7b
.
2021-03-16 07:58:38 +01:00
Hasan Ramezani
bc04941bf8
Fixed #32536 -- Added links to BaseDetailView/BaseListView.get() methods in CBV docs.
2021-03-16 07:34:07 +01:00
Hasan Ramezani
775b796d8d
Refs #32508 -- Raised ValueError instead of using "assert" in lazy().
2021-03-15 13:10:30 +01:00
Hasan Ramezani
2cd0ccef04
Added tests for AssertionErrors in get_complete_version() and _lazy_re_compile().
2021-03-15 13:03:30 +01:00
Chris Jerdonek
7bdd09d016
Fixed #32540 -- Optimized DiscoverRunner.build_suite() by calling find_top_level() only if is_discoverable() is true.
2021-03-15 10:15:21 +01:00
Chris Jerdonek
d5a214c7c4
Refs #32540 -- Added django.test.runner.find_top_level().
2021-03-15 10:15:21 +01:00
Hasan Ramezani
50ef9dfac2
Fixed typo in docs/ref/checks.txt.
2021-03-15 09:42:00 +01:00
Mariusz Felisiak
4d912e6697
Updated datum directory for PROJ 6 in GIS install instructions.
2021-03-15 08:20:36 +01:00
Mariusz Felisiak
876dc0c1a7
Made GitHub action add welcome message only after opening PR.
2021-03-12 20:17:00 +01:00
manav014
99640e24b4
Fixed #31516 -- Improved naming of migrations with multiple operations.
...
52 gives 60 in total (52 + 5 + 3).
Co-authored-by: Adam Johnson <me@adamj.eu>
2021-03-12 11:56:12 +01:00
Adam Johnson
927fead2f5
Refs #31516 -- Added Migration.suggest_name() tests for migrations with no operations.
2021-03-12 11:56:12 +01:00
Tom Forbes
a464ead29d
Added GitHub action with welcome message for first-time contributors.
...
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-03-12 10:45:13 +01:00
Adam Johnson
b1cb923883
Refs #31516 , Refs #31703 -- Made makemigrations always name initial migrations "initial".
2021-03-12 09:19:23 +01:00
Chris Jerdonek
551b0f94bf
Reduced nesting inside DiscoverRunner.build_suite().
2021-03-12 08:06:29 +01:00
Chris Jerdonek
d828beb68f
Fixed #32529 -- Delayed creating a test suite in build_suite().
2021-03-11 10:02:06 +01:00
Chris Jerdonek
d8a4bcffdb
Refs #32489 -- Doc'd and tested iter_test_cases() support for an iterable of tests.
2021-03-11 09:23:33 +01:00
Hasan Ramezani
a2d5ea626e
Refs #32508 -- Raised ImproperlyConfigured instead of using "assert" in middlewares.
2021-03-11 08:34:28 +01:00
Jonny Park
dc86a25a67
Refs #24121 -- Added __repr__() to MiddlewareMixin and subclasses.
2021-03-10 21:16:58 +01:00
Claude Paroz
bc43ae7c13
Refs #31235 -- Improved assertQuerysetEqual() warning message with stacklevel=2.
2021-03-10 16:09:05 +01:00
Mariusz Felisiak
a6a94fb966
Removed unnecessary lines in test_has_view_or_change_permission_required().
...
AutocompleteJsonViewTests.user is already a staff member.
2021-03-10 15:37:28 +01:00
mimi89999
0df5c8187a
Fixed #32512 -- Fixed admin dark theme for autocomplete fields.
2021-03-10 11:16:03 +01:00
Nick Pope
afb0eb8bb3
Refs #24121 -- Added __repr__() to OrderedSet.
2021-03-10 09:29:05 +01:00
Mariusz Felisiak
ba9a2b7544
Refs #32508 -- Raised TypeError instead of using "assert" on unsupported operations for sliced querysets.
2021-03-10 09:16:28 +01:00
Mariusz Felisiak
6f5dbe9dbe
Refs #32018 -- Corrected color variable for toggle links in admin.
...
Follow up to cd3019bc10
.
2021-03-09 18:38:07 +01:00
Mariusz Felisiak
781acf0987
Refs #32018 -- Used --darkened-bg for <pre> elements.
2021-03-09 18:34:25 +01:00
Chris Jerdonek
77e0a35a10
Fixed #32516 -- Fixed reorder_suite() with duplicates and reverse=True.
2021-03-09 13:30:51 +01:00
Mariusz Felisiak
98d3fd6102
Updated link to Selenium webdrivers.
2021-03-09 11:29:54 +01:00
Markus Holtermann
d9a266d657
Updated Git branch "master" to "main".
...
This change follows a long discussion on django-develops:
https://groups.google.com/g/django-developers/c/tctDuKUGosc/
2021-03-09 08:48:32 +01:00
Markus Holtermann
a124365de8
Updated Git branch "master" to "main" in GitHub actions workflows.
2021-03-09 07:28:49 +01:00
Tim Graham
76c0b32f82
Refs #26167 -- Added @skipUnlessDBFeature('supports_expression_indexes') to a test.
...
Failure observed on CockroachDB.
2021-03-08 20:12:26 +01:00
Chris Jerdonek
465fdffda0
Refs #32489 -- Simplified filter_tests_by_tags().
2021-03-08 09:54:01 +01:00
Chris Jerdonek
8ff75a3d9e
Refs #32489 -- Simplified partition_suite_by_case().
2021-03-08 09:53:31 +01:00