Django

Code

Ticket #5506 (closed: fixed)

Opened 8 months ago

Last modified 8 months ago

Add some tests for Generic views

Reported by: robh Assigned to: russellm
Component: Generic views Version: SVN
Keywords: sprintsept14 Cc:
Triage Stage: Ready for checkin Has patch: 1
Needs documentation: 0 Needs tests: 0
Patch needs improvement: 0

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.

Attachments

5506.diff (6.9 kB) - added by robh on 09/15/07 23:49:25.
Tests for #391 (object_detail can't find 'today') and #3031 (archive_month includes too much)

Change History

09/15/07 23:49:25 changed by robh

  • attachment 5506.diff added.

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

09/16/07 04:20:55 changed by Simon G. <dev@simon.net.nz>

  • needs_better_patch changed.
  • stage changed from Unreviewed to Ready for checkin.
  • summary changed from [patch] Generic views have no testing to Add some tests for Generic views.
  • needs_tests changed.
  • needs_docs changed.

09/16/07 17:14:32 changed by ubernostrum

See also #3689.

09/17/07 18:44:27 changed by russellm

  • owner changed from nobody to russellm.

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

09/19/07 08:32:53 changed by russellm

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #5506 (Add some tests for Generic views)




Change Properties
Action