Opened 9 years ago

Closed 9 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: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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 9 years ago.
Several tests in a new directory for testing django views
django_views_tests_r6360.diff (10.9 KB) - added by Manuel Saelices 9 years ago.
Completing tests with django.views.defaults views
django_views_tests_r6360.2.diff (12.2 KB) - added by Manuel Saelices 9 years ago.
Added views for django.views.static views

Download all attachments as: .zip

Change History (9)

comment:1 Changed 9 years ago by Manuel Saelices

Status: newassigned

Changed 9 years ago by Manuel Saelices

Attachment: django_views_tests.diff added

Several tests in a new directory for testing django views

comment:2 Changed 9 years ago by Manuel Saelices

Has patch: set

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

comment:3 Changed 9 years ago by Manuel Saelices

I'll complete test for all django views

Changed 9 years ago by Manuel Saelices

Completing tests with django.views.defaults views

Changed 9 years ago by Manuel Saelices

Added views for django.views.static views

comment:4 Changed 9 years ago by James Bennett

See also #5506.

comment:5 Changed 9 years ago by Manuel Saelices

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 Changed 9 years ago by Russell Keith-Magee

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