Opened 15 years ago
Closed 15 years ago
#13897 closed (fixed)
There should be tests for object_list's pagination
| Reported by: | Julien Phalip | Owned by: | |
|---|---|---|---|
| Component: | Generic views | Version: | |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
As discussed on the dev-list (http://groups.google.com/group/django-developers/browse_thread/thread/629df2bddea57b7d) there currently are no tests for the object_list generic view's pagination functionality. The paginator is tested but only on its own.
There should be tests for it as it's probably used in many Django websites.
Attachments (2)
Change History (7)
by , 15 years ago
| Attachment: | object_list_tests.diff added |
|---|
comment:1 by , 15 years ago
| Has patch: | set |
|---|
comment:2 by , 15 years ago
| Owner: | changed from to |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
comment:3 by , 15 years ago
| Triage Stage: | Accepted → Ready for checkin |
|---|---|
| Version: | 1.2 |
comment:4 by , 15 years ago
| Owner: | removed |
|---|
comment:5 by , 15 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
I have attached a patch with tests that cover the different code paths in the object_list view code paths.