Opened 8 years ago

Closed 8 years ago

#5496 closed (fixed)

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

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

Download all attachments as: .zip

Change History (9)

comment:1 Changed 8 years ago by msaelices

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Status changed from new to assigned

Changed 8 years ago by msaelices

Several tests in a new directory for testing django views

comment:2 Changed 8 years ago by msaelices

  • Has patch set

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

comment:3 Changed 8 years ago by msaelices

I'll complete test for all django views

Changed 8 years ago by msaelices

Completing tests with django.views.defaults views

Changed 8 years ago by msaelices

Added views for django.views.static views

comment:4 Changed 8 years ago by ubernostrum

See also #5506.

comment:5 Changed 8 years ago 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?

comment:6 Changed 8 years ago by russellm

  • Resolution set to fixed
  • Status changed from assigned to closed

(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