summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2019-11-06Adjusted expected exception message for Windows.Jon Dufresne
Test failure introduced in fbbff7f80870bc3e98de4a2fc9cd853949842fd0. Windows uses a different error message when a non-path is passed to os.path functions.
2019-11-06Refs #29983 -- Added tests for FileBasedCache pathlib support.Jon Dufresne
2019-11-06Refs #29983 -- Added pathlib.Path support to the file email backend.Jon Dufresne
2019-11-06Refs #30183 -- Doc'd dropping support for sqlparse < 0.2.2.Stephen Rauch
Support for sqlparse < 0.2.2 was broken in 782d85b6dfa191e67c0f1d572641d8236c79174c because is_whitespace property was added in sqlparse 0.2.2.
2019-11-06Refs #29983 -- Added test for FILE_UPLOAD_TEMP_DIR pathlib support.Jon Dufresne
2019-11-06Refs #29983 -- Added test for FIXTURES_DIRS pathlib support.Jon Dufresne
2019-11-05Passed strict=True to Path.resolve() to enforce that the path must exist.Jon Dufresne
2019-11-05Fixed #30095 -- Fixed system check for RangeField/ArrayField.choices with ↵Hasan Ramezani
lists and tuples.
2019-11-04Refs #30116 -- Simplified stdout/stderr decoding with subprocess.run()'s ↵Jon Dufresne
encoding argument. The encoding argument has been available since Python 3.6. https://docs.python.org/3/library/subprocess.html#subprocess.run
2019-11-04Simplified consecutive calls to pathlib.Path.parent.Jon Dufresne
2019-11-04Fixed #30931 -- Restored ability to override Model.get_FIELD_display().Carlton Gibson
Thanks Sergey Fedoseev for the implementation idea. Regression in a68ea231012434b522ce45c513d84add516afa60.
2019-11-01Refs #27808 -- Added test for saving nested ArrayField with nullable base field.Hasan Ramezani
2019-10-31Fixed #30761 -- Prevented floatformat filter from returning a negative zero.Sky
2019-10-31Added more tests for floatformat filter with negative values.Sky
2019-10-31Refs #28428 -- Made FileSystemStorage.save() to support pathlib.Path.Hasan Ramezani
2019-10-31Refs #28428 -- Added tests for using FileSystemStorage with pathlib.Path.Hasan Ramezani
2019-10-30Refs #20456 -- Moved initialization of HEAD method based on GET to the ↵Felipe Lee
View.setup() for generic views. This will ease unit testing of views since setup will essentially do everything needed to set the view instance up (other than instantiating it). Credit for idea goes to Vincent Prouillet.
2019-10-30Refs #20456 -- Added test for initialization of request/args/kwargs ↵Felipe Lee
attributes in View.Setup().
2019-10-30Refs #28428 -- Made filepath_to_uri() support pathlib.Path.Hasan Ramezani
2019-10-29Used more specific unittest assertions in tests.Nick Pope
* assertIsNone()/assertIsNotNone() instead of comparing to None. * assertLess() for < comparisons. * assertIs() for 'is' expressions. * assertIsInstance() for isinstance() expressions. * rounding of assertAlmostEqual() for round() expressions. * assertIs(..., True/False) instead of comparing to True/False. * assertIs()/assertIsNot() for ==/!= comparisons. * assertNotEqual() for == comparisons. * assertTrue()/assertFalse() instead of comparing to True/False.
2019-10-29Fixed #30922 -- Fixed ModelAdmin.date_hierarchy queries with DST changes.Erwin Junge
There was an issue where admin date_hierarchy didn't render last day of a month in DST-switch month.
2019-10-29Refs #30908 -- Added test for nonexistent path in forms.FilePathField.Hasan Ramezani
2019-10-28Fixed #30918 -- Made timesince()/timeuntil() respect custom time strings for ↵Hasan Ramezani
future and the same datetimes.
2019-10-28Fixed #30907 -- Fixed SplitArrayField.has_changed() with removal of empty ↵Pavel Dedik
trailing values.
2019-10-28Refs #30907 -- Added more tests for SplitArrayField.has_changed().Pavel Dedik
2019-10-25Fixed #29770 -- Added LinearRing.is_counterclockwise property.Sergey Fedoseev
2019-10-25Fixed #29087 -- Added delete buttons for unsaved admin inlines on validation ↵Carlton Gibson
error.
2019-10-25Fixed #30902 -- Added __str__() for model choice enums.Carlton Gibson
Allows expected behavior when cast to str, also matching behaviour of created instances with those fetched from the DB. Thanks to Simon Charette, Nick Pope, and Shai Berger for reviews.
2019-10-24Refs #30897 -- Added support for ANALYZE option to Queryset.explain() on ↵Nick Pope
MariaDB and MySQL 8.0.18+.
2019-10-24Refs #30897 -- Added support for TREE format to Queryset.explain() on MySQL ↵Nick Pope
8.0.16+.
2019-10-24Fixed #23576 -- Implemented multi-alias fast-path deletion in MySQL backend.Simon Charette
This required moving the entirety of DELETE SQL generation to the compiler where it should have been in the first place and implementing a specialized compiler on MySQL/MariaDB. The MySQL compiler relies on the "DELETE table FROM table JOIN" syntax for queries spanning over multiple tables.
2019-10-24Fixed #30900 -- Skipped async-related tests on Windows using Python 3.8.0.Carlton Gibson
Refs https://bugs.python.org/issue38563.
2019-10-24Fixed #30903 -- Fixed migrations crash on PostgreSQL when adding Index with ↵Hannes Ljungberg
opclasses and ordering.
2019-10-23Refs #29926 -- Bumped minimum tblib version to 1.5.0 in test requirements.Mariusz Felisiak
2019-10-23Bumped minimum Pillow version to 6.2.0 in test requirements.Mariusz Felisiak
Pillow < 6.2.0 is vulnerable to CVE-2019-16865.
2019-10-23Refs #30897 -- Added test for SETTINGS option to Queryset.explain() on ↵Nick Pope
PostgreSQL 12+.
2019-10-23Refs #28574 -- Used feature flag for PostgreSQL version check.Nick Pope
2019-10-23Fixed #29919 -- Fixed RelatedOnlyFieldListFilter crash with reverse ↵Dan Moore
relationships.
2019-10-23Added tests for Field.get_choices()'s limit_choices_to argument.Dan Moore
2019-10-23Added tests for middlewares' checks.Sergey Fedoseev
2019-10-22Refs #29926 -- Skipped RemoteTestResultTest.test_add_failing_subtests() on ↵Mariusz Felisiak
Python 3.8+ and tblib <= 1.4.0.
2019-10-21Fixed #20577 -- Deferred filtering of prefetched related querysets.Alex Aktsipetrov
Added internal interface to QuerySet that allows to defer next filter call till .query is accessed. Used it to optimize prefetch_related(). Thanks Simon Charette for the review.
2019-10-21Fixed #30827 -- Made batch_size arg of QuerySet.bulk_create() respect ↵Ahmet Kucuk
DatabaseOperations.bulk_batch_size(). Thanks Chetan Khanna for tests.
2019-10-21Fixed #30876 -- Moved classproperty() decorator to the django.utils.functional.André Ericson
2019-10-21Fixed #30841 -- Deprecated using non-boolean values for isnull lookup.André Ericson
2019-10-21Replaced deprecated assertEquals() with assertEqual().Jon Dufresne
2019-10-18Fixed #27391 -- Implemented SimpleTestCase.debug().Pavel Savchenko
debug() should bubbled up exceptions if occurring in test, but behave the same as run() when no exceptions occurred.
2019-10-18Refs #27391 -- Added more tests for SimpleTestCase.Pavel Savchenko
2019-10-18Fixed #28337 -- Preserved extra headers of requests made with ↵Patrick Jenkins
django.test.Client in assertRedirects(). Co-Authored-By: Hasan Ramezani <hasan.r67@gmail.com>
2019-10-18Fixed typo in tests/admin_scripts/tests.py.Daniel Musketa