Opened 17 years ago

Closed 17 years ago

#5506 closed (fixed)

Add some tests for Generic views

Reported by: robh Owned by: Russell Keith-Magee
Component: Generic views Version: dev
Severity: Keywords: sprintsept14
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

This sprint has seen a few tests being written for generic views, where previously there were none.

I've worked on #391 and #3031 and after testing found that they are both "worksforme".
There's also #1282 and #5494, which changed actual code.

All of these have used the TestClient to test the views, which appears to be the most practical option.

Change History (5)

by robh, 17 years ago

Attachment: 5506.diff added

Tests for #391 (object_detail can't find 'today') and #3031 (archive_month includes too much)

comment:1 by Simon G. <dev@…>, 17 years ago

Summary: [patch] Generic views have no testingAdd some tests for Generic views
Triage Stage: UnreviewedReady for checkin

comment:2 by James Bennett, 17 years ago

See also #3689.

comment:3 by Russell Keith-Magee, 17 years ago

Owner: changed from nobody to Russell Keith-Magee

I added the start of a view-testing regression test in [6370]; this one is next on my list.

comment:4 by Russell Keith-Magee, 17 years ago

Resolution: fixed
Status: newclosed

(In [6374]) Fixed #5506 -- Added some basic tests for date-based generic views. Thanks to robh for the original patch.

Note: See TracTickets for help on using tickets.
Back to Top