summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2021-11-19Refs #24121 -- Added __repr__() to BaseDatabaseWrapper, JoinPromoter, and ↵Jonny Park
SQLCompiler.
2021-11-16Fixed #28357 -- Fixed ModelAdmin.prepopulated_fields on newly added stacked ↵Shubh1815
inline. Thanks Jakob Köhler for the initial patch.
2021-11-16Refs #32800 -- Avoided use of _does_token_match() in some CSRF tests.Chris Jerdonek
2021-11-16Refs #32800 -- Added CSRF tests for masked and unmasked secrets during GET.Chris Jerdonek
2021-11-15Fixed #33278 -- Improved error for connection/query attempts against ↵SwastikTripathi
disallowed databases in tests.
2021-11-15Fixed #33288 -- Made SQLite introspection use information schema for relations.Simon Charette
Previous solution was using brittle and complex parsing rules to extract them from the SQL used to define the tables. Removed a now unnecessary unit test that ensured the removed parsing logic accounted for optional spacing.
2021-11-15Refs #33288 -- Made SQLite introspection raise DatabaseError on nonexistent ↵Simon Charette
tables. All the other backends behave this way and we had to make adjustments to our test suite to account for this discrepancy. This also allows SQLite's get_relations() not to raise on a nonexistent table while making sure the InspectDBTestCase.test_introspection_errors test which ensures an error during introspection is surfaced in generated models files still passes.
2021-11-12Fixed #33161 -- Enabled durability check for nested atomic blocks in TestCase.Krzysztof Jagiello
Co-Authored-By: Adam Johnson <me@adamj.eu>
2021-11-12Fixed #33279 -- Fixed handling time zones with "-" sign in names.Can Sarigol
Thanks yakimka for the report. Regression in fde9b7d35e4e185903cc14aa587ca870037941b1.
2021-11-11Fixed #33269 -- Made AnonymousUser/PermissionsMixin.has_perms() raise ↵Lie Ryan
ValueError on string or non-iterable perm_list.
2021-11-11Fixed #6106 -- Prevented makemessages from changing .po files when up to date.Ad Timmering
Co-authored-by: Daniyal Abbasi <abbasi.daniyal98@gmail.com>
2021-11-10Removed DatabaseIntrospection.get_key_columns().Mariusz Felisiak
Thanks Simon Charette for the report.
2021-11-09Refs #33263 -- Added warning to BaseDeleteView when delete() method is ↵Mariusz Felisiak
overridden. Follow up to 3a45fea0832c5910acee6e0d29f230f347a50462.
2021-11-09Refs #16063 -- Added tests for searching against multiple related fields in ↵Jacob Walls
admin changelist.
2021-11-08Fixed #33264 -- Made test runner return non-zero error code for unexpected ↵Baptiste Mispelon
successes.
2021-11-08Fixed #33257 -- Fixed Case() and ExpressionWrapper() with decimal values on ↵Matthijs Kooijman
SQLite.
2021-11-08Fixed #32980 -- Made models cache related managers.Keryn Knight
2021-11-05Fixed #33253 -- Reverted "Fixed #32319 -- Added ES module support to ↵Mariusz Felisiak
ManifestStaticFilesStorage." This reverts commit 91e21836f667c784a8a63ab1f18d81f553e679cb. `export` and `import` directives have several syntax variants and not all of them were properly covered. Thanks Hervé Le Roy for the report.
2021-11-05Fixed #33235 -- Removed "for = ..." from MultiWidget's <label>.David Smith
This improves accessibility for screen reader users.
2021-11-04Fixed #33237 -- Fixed detecting source maps in ManifestStaticFilesStorage ↵Carlton Gibson
for multiline files. Switched regex to multiline mode in order to match per-line, rather than against the whole file. Thanks to Joseph Abrahams for the report. Regression in 781b44240a06f0c868254f40f36ce46c927f56d1.
2021-11-04Fixed #27147 -- Allowed specifying bounds of tuple inputs for non-discrete ↵Guilherme Martins Crocetti
range fields.
2021-11-04Refs #29738 -- Added test for serializing psycopg2's NumericRange with ↵Guilherme Martins Crocetti
DecimalRangeField in migrations.
2021-11-04Fixed #33262 -- Fixed crash of conditional aggregation on Exists().Hannes Ljungberg
2021-11-03Fixed #33260 -- Fixed crash when chaining QuerySet.exists() after ↵Hannes Ljungberg
select_for_update(of=()).
2021-11-03Fixed #32996 -- Cached PathInfos on relations.Keryn Knight
PathInfo values are ostensibly static over the lifetime of the object for which they're requested, so the data can be memoized, quickly amortising the cost over the process' duration.
2021-11-03Fixed #33252 -- Made cache middlewares thread-safe.Iuri de Silvio
2021-11-03Refs #33252 -- Used @override_settings in ↵Iuri de Silvio
BaseCacheTests.test_cache_write_unpicklable_object()
2021-11-02Fixed #32691 -- Made Exact lookup on BooleanFields compare directly to a ↵Roman
boolean value on MySQL. Performance regression in 37e6c5b79bd0529a3c85b8c478e4002fd33a2a1d. Thanks Todor Velichkov for the report. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-11-02Fixed #33187 -- Made inspectdb handle ForeignKey.to_field attribute.jordan.bae
2021-11-02Fixed #33234 -- Fixed autodetector crash for proxy models inheriting from ↵Mariusz Felisiak
non-model class. Regression in aa4acc164d1247c0de515c959f7b09648b57dc42. Thanks Kevin Marsh for the report.
2021-11-02Fixed #33224 -- Removed ↵Hasan Ramezani
DatabaseFeatures.supports_mixed_date_datetime_comparisons.
2021-11-02Fixed #33246 -- Made squashmigrations raise CommandError when squashed_name ↵andrewdotn
already exists.
2021-11-02Fixed isolation of admin_views.tests.ValidXHTMLTests.Mariusz Felisiak
2021-10-29Fixed #33236 -- Fixed assertHTMLEqual() error messages for escaped HTML.Pratyush Mittal
2021-10-27Fixed #33201 -- Made RenameModel operation a noop for models with db_table.Iuri de Silvio
2021-10-26Fixed #32672 -- Fixed introspection of primary key constraints on SQLite.Anv3sh
Thanks Simon Charette for the implementation idea.
2021-10-26Corrected AutodetectorTests.test_rename_field_and_foo_together()'s docstring.Mariusz Felisiak
2021-10-26Fixed #27079 -- Avoided multiple setUpClass()/tearDownClass() calls in ↵Jacob Walls
LiveServerTestCase tests.
2021-10-26Removed duplicated lines in ↵Tim Graham
test_in_lookup_allows_F_expressions_and_expressions_for_datetimes().
2021-10-25Fixed #31503 -- Made autodetector remove unique/index_together before ↵David Wobrock
altering fields.
2021-10-25Fixed #33205 -- Made call_command() raise TypeError when dest with multiple ↵Hasan Ramezani
arguments is passed.
2021-10-25Fixed typo in tests/servers/tests.py.Jacob Walls
2021-10-22Fixed #33214 -- Added ↵Manaia Junior
BaseDatabaseOperations.format_for_duration_arithmetic() stub method.
2021-10-21Fixed #33215 -- Confirmed support for GEOS 3.10.Mariusz Felisiak
2021-10-21Fixed #25916 -- Added lastmod support to sitemap index view.David Smith
Co-authored-by: Matthew Downey <matthew.downey@webit.com.au>
2021-10-21Refs #25916 -- Isolated sitemap.test_utils testsDavid Smith
2021-10-21Fixed #33211 -- Updated tests for Selenium 4.0.0.Carlton Gibson
Replaced deprecated `find_element[s]_by_*()` usages, in favour of `find_element[s]()` with an explicit `By`.
2021-10-21Refs #33211 -- Added assertCountSeleniumElements() test helper.Carlton Gibson
2021-10-21Made F deconstruction omit 'expressions' in the path.Adam Johnson
2021-10-20Fixed #33043 -- Made method_decorator() preserve wrapper assignments.Vinay Karanam
Regression in f434f5b84f7fcea9a76a551621ecce70786e2899.