summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2019-11-27Fixed #30975 -- Replaced custom get_select_option with Selenium's ↵Johannes Hoppe
select_by_value.
2019-11-27Fixed #30973 -- Converted selenium tests wait_page_loaded to context manager.Johannes Hoppe
2019-11-27Fixed #30425 -- Handled jinja2.TemplateSyntaxError when rendering a template.Hasan Ramezani
Jinja raises jinja2.TemplateSyntaxError in render() not in get_template() when it's in an included template.
2019-11-27Fixed #30803 -- Allowed comma separators for milliseconds in ↵Farhaan Bukhsh
django.utils.dateparse functions. Co-Authored-By: Ben Wilber <benwilber@gmail.com>
2019-11-27Refs #30803 -- Allowed comma separators for decimal fractions in ↵Farhaan Bukhsh
parse_duration().
2019-11-26Fixed #31031 -- Fixed data loss in admin changelist view when formset's ↵Baptiste Mispelon
prefix contains regex special chars. Regression in b18650a2634890aa758abae2f33875daa13a9ba3.
2019-11-25Fixed #31002 -- Fixed GIS lookups crash against a subquery annotation.Simon Charette
Thanks Vasileios Bouzas for the report.
2019-11-25Fixed #27914 -- Fixed serialization of nested classes in migrations.John Bowen
2019-11-25Refs #23950 --- Moved test DeconstructibleInstances class to a module level.John Bowen
DeconstructibleInstances was not importable from the asserted path.
2019-11-22Fixed #30996 -- Added AsWKB and AsWKT GIS functions.Sergey Fedoseev
2019-11-22Fixed #9762 -- Made DateFormat.r() locale-independent.Baptiste Mispelon
Thanks to Antonio Melé for the original report all those years ago and to all the contributors who helped along the way.
2019-11-22Refs #26281 -- Added a helpful error message for an invalid "r" specifier to ↵Baptiste Mispelon
dateformat.format().
2019-11-22Fixed #8467 -- Prevented crash when adding existent m2m relation with an ↵Simon Charette
invalid type. This was an issue anymore on backends that allows conflicts to be ignored (Refs #19544) as long the provided values were coercible to the expected type. However on the remaining backends that don't support this feature, namely Oracle, this could still result in an IntegrityError. By attempting to coerce the provided values to the expected types in Python beforehand we allow the existing value set intersection in ManyRelatedManager._get_missing_target_ids to prevent the problematic insertion attempts. Thanks Baptiste Mispelon for triaging this old ticket against the current state of the master branch.
2019-11-22Refs #8467 -- Added test for RelatedManager.add()/remove() with an invalid type.Simon Charette
2019-11-21Fixed #31012 -- Reverted "Fixed #29056 -- Fixed HTML5 validation of required ↵Carlton Gibson
SelectDateWidget." This reverts commit f038214d917c982613f5a15db8dfe325b1f7479b. The initial issue was incorrect. Django 2.2, and before, did not generate invalid HTML as reported. With f03821 in place invalid HTML was generated. Thanks to Kevin Brown for follow-up report and investigation.
2019-11-21Fixed #30413 -- Fixed test database signature on SQLite when test database ↵Farhaan Bukhsh
name is provided. Previously, the same signature was created for multiple in-memory databases on SQLite when they had tests databases names DATABASES['TEST']['NAME'].
2019-11-21Refs #25367 -- Made Query.build_filter() raise TypeError on non-conditional ↵Simon Charette
expressions.
2019-11-21Fixed #30484 -- Added conditional expressions support to CheckConstraint.Simon Charette
2019-11-21Refs #11964 -- Removed SimpleCol in favor of Query(alias_cols).Simon Charette
This prevent having to pass simple_col through multiple function calls by defining whether or not references should be resolved with aliases at the Query level.
2019-11-20Fixed #25388 -- Added an option to allow disabling of migrations during test ↵Jon Dufresne
database creation.
2019-11-20Pinned asgiref version.Carlton Gibson
2019-11-19Fixed #30981 -- Fixed admin changelist crash when using F() or OrderBy() ↵Hasan Ramezani
expressions in admin_order_field.
2019-11-19Fixed #27272 -- Added an on_delete RESTRICT handler to allow cascading ↵Daniel Izquierdo
deletions while protecting direct ones.
2019-11-19Fixed #30987 -- Added models.PositiveBigIntegerField.Caio Ariede
2019-11-19Removed unnecessary numeric indexes in format strings.Jon Dufresne
2019-11-18Fixed #30994 -- Added Oracle support for AsGeoJSON GIS function.Sergey Fedoseev
2019-11-18Replaced encode() usage with bytes literals.Jon Dufresne
2019-11-18Replaced unnecessary str()/bytes() calls with literals.Jon Dufresne
2019-11-18Removed unnecessary parentheses in various code.Jon Dufresne
2019-11-18Fixed #30988 -- Deprecated the InvalidQuery exception.Simon Charette
It was barely documented without pointers at its defining location and was abused to prevent misuse of the QuerySet field deferring feature.
2019-11-18Relaxed some query ordering assertions in tests.Tim Graham
It accounts for differences seen on cockroachdb.
2019-11-18Refs #30990 -- Added test for 'z' date format with a leap year.Baptiste Mispelon
2019-11-18Fixed #30986 -- Fixed queryset crash when filtering against boolean RawSQL ↵Mariusz Felisiak
expressions on Oracle.
2019-11-18Removed hardcoded pk in view_tests.tests.test_defaults.Tim Graham
2019-11-18Removed hardcoded pk in test_pk_set_on_repeated_add_remove.Tim Graham
Follow up to bed4a1527b4f1f38c8b4f820de5591a52e62711d.
2019-11-15Refs #29808 -- Fixed ↵Mariusz Felisiak
MigrateTests.test_migrate_fake_initial_case_insensitive() crash on Oracle.
2019-11-15Fixed #29808 -- Fixed initial migration detection when identifiers are ↵Hasan Ramezani
case-insensitive. Thanks Simon Charette for the review.
2019-11-14Fixed #29916 -- Added lower_inc, lower_inf, upper_inc, and upper_inf lookups ↵Dulmandakh
for RangeFields. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2019-11-14Fixed #30759 -- Made cache.delete() return whether it succeeded.daniel a rios
Thanks Simon Charette for the review.
2019-11-13Fixed random auth_tests.test_tokens.TokenGeneratorTest.test_10265 failures.Mariusz Felisiak
Random failures depended on the current timestamp.
2019-11-13Moved MockedPasswordResetTokenGenerator outside of ↵Mariusz Felisiak
TokenGeneratorTest.test_timeout().
2019-11-13Fixed #30971 -- Prevented Query.resolve_lookup_value() from coercing list ↵George Marshall
values to tuples. Regression in 8a281aa7fe76a9da2284f943964a9413697cff1f.
2019-11-12Fixed #30405 -- Fixed source code mismatch crash in ExceptionReporter.Hasan Ramezani
2019-11-11Fixed #30967 -- Fixed TrigramTest failures on PostgreSQL 12+.Hannes Ljungberg
2019-11-08Fixed #24858 -- Added support for get_FOO_display() to ArrayField and ↵Hasan Ramezani
RangeFields. _get_FIELD_display() crashed when Field.choices was unhashable.
2019-11-08Fixed #30961 -- Fixed spaces in columns list SQL generated for indexes.Hannes Ljungberg
2019-11-08Refs #30961 -- Added tests for columns list SQL generated for indexes.Hannes Ljungberg
2019-11-07Fixed #30943 -- Added BloomIndex to django.contrib.postgres.Nick Pope
2019-11-07Refs #29983 -- Added support for using pathlib.Path in all settings.Jon Dufresne
2019-11-06Harmonized Windows checks in tests to a single style.Jon Dufresne