summaryrefslogtreecommitdiff
path: root/tests/pagination/tests.py
AgeCommit message (Collapse)Author
2025-07-23Refs #36500 -- Rewrapped long docstrings and block comments via a script.django-bot
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
2025-07-23Refs #36500 -- Shortened some long docstrings and comments.Mike Edmunds
Manually reformatted some long docstrings and comments that would be damaged by the to-be-applied autofixer script, in cases where editorial judgment seemed necessary for style or wording changes.
2025-07-23Removed double spaces after periods and within phrases.Sarah Boyce
2025-03-25Fixed #35452 -- Deprecated orphans being more than or equal to page_size in ↵wookkl
pagination.
2025-03-13Refs #35945 -- Fixed ↵Mariusz Felisiak
test_paginating_unordered_queryset_raises_warning_async() test on byte-compiled Django.
2025-03-12Fixed #35945 -- Added async interface to Paginator.wookkl
2023-06-23Improved style of n-tuple wording in docs and comments.Nick Pope
2023-04-12Fixed #27505 -- Allowed customizing Paginator's error messages.Marcelo Galigniana
2022-10-13Completed test coverage for django.core.paginator.Marcelo Galigniana
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2020-11-06Fixed #31235 -- Made assertQuerysetEqual() compare querysets directly.Hasan Ramezani
This also replaces assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate. Co-authored-by: Peter Inglesby <peter.inglesby@gmail.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-08-06Fixed #25513 -- Extracted admin pagination to Paginator.get_elided_page_range().Nick Pope
2019-10-02Fixed #14218 -- Added Paginator.__iter__().Tanner Stirrat
2019-09-25Fixed false positive tests of Paginator.count property.Maxim Kurnikov
2019-09-10Refs #29703 -- Removed QuerySetPaginator alias per deprecation timeline.Mariusz Felisiak
2019-07-23Improved error message when index in __getitem__() is invalid.Jon Dufresne
2018-11-27Switched setUp() to setUpTestData() where possible in Django's tests.Simon Charette
2018-08-27Fixed #29703 -- Deprecated QuerySetPaginator alias.Nick Pope
Unused since 4406d283e13819b04556df21044089b7d119edb0.
2018-08-07Fixed #29244 -- Prevented Paginator.count() from silencing TypeError and ↵Josh Schneier
AttributeError.
2018-08-01Fixed typos in comments and docs.luz.paz
2018-07-16Fixed #28917 -- Prevented Paginator's unordered warning on EmptyQuerySet.Josh Schneier
Thanks carltongibson for the idea and weijunji for the initial patch.
2018-05-09Fixed #29363 -- Added SimpleTestCase.assertWarnsMessage().Morgan Aubert
2018-05-09Fixed #29389 -- Made Paginator reject non-integer page numbers of type float.Nicolas Noé
2018-05-09Refs #29389 -- Added Paginator test for float page number.Nicolas Noé
2017-09-06Fixed #28032 -- Added Paginator.get_page().Sami J. Lehtinen
Moved boilerplate from docs to a method.
2017-06-26Removed unnecessary empty parentheses in class definitions.Jon Dufresne
2017-06-13Fixed #28284 -- Prevented Paginator's unordered object list warning from ↵orf
evaluating a QuerySet.
2017-04-22Fixed #28109 -- Corrected the stack level of unordered queryset pagination ↵Simon Charette
warnings. Refs #26290. Thanks Tim for the review.
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-06-08Fixed #26290 -- Warned that paginating an unordered QuerySet may result in ↵Emad Mokhtar
inconsistent results.
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-01-29Refs #26022 -- Used context manager version of assertRaises in tests.Hasan
2015-07-03Fixed #23190 -- Made Paginator.page_range an iteratorRigel Di Scala
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-11-03Fixed #23620 -- Used more specific assertions in the Django test suite.Berker Peksag
2014-08-03Revert "Fixed #23088 -- Used `six` `range` type in `Paginator.page_range`."Florian Apolloner
This reverts commit 6508db2ff9fc5be95fec903b3fa7ab8204fe316a. Refs #23088.
2014-07-25Fixed #23088 -- Used `six` `range` type in `Paginator.page_range`.Moayad Mardini
2014-03-03Fixed many typos in comments and docstrings.Rodolfo Carvalho
Thanks Piotr Kasprzyk for help with the patch.
2013-10-21Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol
2013-10-18Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-07-01Stopped using django.utils.unittest in the test suite.Aymeric Augustin
Refs #20680.
2013-05-25Fixed #19938 -- Consumed iterator only once in paginator's PageAndrew Jesaitis
Thanks Joshua Fialkoff for the report.
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner