Opened 17 years ago

Closed 17 years ago

#5496 closed (fixed)

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

Reported by: Manuel Saelices Owned by: Manuel Saelices
Component: Testing framework Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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 (3)

django_views_tests.diff (9.1 KB ) - added by Manuel Saelices 17 years ago.
Several tests in a new directory for testing django views
django_views_tests_r6360.diff (10.9 KB ) - added by Manuel Saelices 17 years ago.
Completing tests with django.views.defaults views
django_views_tests_r6360.2.diff (12.2 KB ) - added by Manuel Saelices 17 years ago.
Added views for django.views.static views

Download all attachments as: .zip

Change History (9)

comment:1 by Manuel Saelices, 17 years ago

Status: newassigned

by Manuel Saelices, 17 years ago

Attachment: django_views_tests.diff added

Several tests in a new directory for testing django views

comment:2 by Manuel Saelices, 17 years ago

Has patch: set

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

comment:3 by Manuel Saelices, 17 years ago

I'll complete test for all django views

by Manuel Saelices, 17 years ago

Completing tests with django.views.defaults views

by Manuel Saelices, 17 years ago

Added views for django.views.static views

comment:4 by James Bennett, 17 years ago

See also #5506.

comment:5 by Manuel Saelices, 17 years ago

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?

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

Resolution: fixed
Status: assignedclosed

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

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