Django

Code

Ticket #5496 (closed: fixed)

Opened 8 months ago

Last modified 8 months ago

It's needed a test directory for testing own django views (generic views, i18n views, etc.)

Reported by: msaelices Assigned to: msaelices
Component: Unit test system Version: SVN
Keywords: Cc:
Triage Stage: Unreviewed Has patch: 1
Needs documentation: 0 Needs tests: 0
Patch needs improvement: 0

Description

I'd like to write testing for tickets like #3594, but there is no place for do testing own django views (located at /django/views/).

It's needed to create a new directory in regressiontests in which was configured:

  • urls.py for testing
  • test browser

Attachments

django_views_tests.diff (9.1 kB) - added by msaelices on 09/15/07 17:29:55.
Several tests in a new directory for testing django views
django_views_tests_r6360.diff (10.9 kB) - added by msaelices on 09/16/07 08:09:32.
Completing tests with django.views.defaults views
django_views_tests_r6360.2.diff (12.2 kB) - added by msaelices on 09/16/07 08:25:29.
Added views for django.views.static views

Change History

09/15/07 13:05:01 changed by msaelices

  • status changed from new to assigned.
  • needs_better_patch changed.
  • needs_tests changed.
  • needs_docs changed.

09/15/07 17:29:55 changed by msaelices

  • attachment django_views_tests.diff added.

Several tests in a new directory for testing django views

09/15/07 17:46:17 changed by msaelices

  • has_patch set to 1.

Has a patch but it's needed to load binaries .mo

09/16/07 06:15:13 changed by msaelices

I'll complete test for all django views

09/16/07 08:09:32 changed by msaelices

  • attachment django_views_tests_r6360.diff added.

Completing tests with django.views.defaults views

09/16/07 08:25:29 changed by msaelices

  • attachment django_views_tests_r6360.2.diff added.

Added views for django.views.static views

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

See also #5506.

09/16/07 17:32:02 changed by msaelices

Ok, I don't work on create tests for generic views, only for basic views. I mean:

  /django_src/django/views/
                          |defaults.py  -> made on this ticket
                          |static.py    -> made on this ticket
                          |i18n.py      -> made on this ticket
                          |--/generic/  -> made on ticket #5506

any suggestion? maybe merging two tickets?

09/17/07 09:48:34 changed by russellm

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

(In [6370]) Fixed #5496 -- Added test cases for some of the built-in Django views. Thanks to Manuel Saelices <msaelices@yaco.es> for the original patch.


Add/Change #5496 (It's needed a test directory for testing own django views (generic views, i18n views, etc.))




Change Properties
Action