That's handy. Thanks. W dniu 31 maja 2009 10:23 użytkownik V <[email protected]> napisał: > > another possibility is to call the views from your test directly, a > relevant snippet to construct a request objects is > http://www.djangosnippets.org/snippets/963/ > > V > > On May 30, 3:43 pm, Ramiro Morales <[email protected]> wrote: >> 2009/5/30 Filip Gruszczyński <[email protected]>: >> >> >> >> > I am building a library for Django that provides some abstract views >> > (I am using classes instead of functions), that can be used subclassed >> > and used in any app. I would like to be able to test those views, so I >> > subclass them during testing and would like to be able to attach them >> > to some url, so they could be called with client.get or post. Is there >> > any possibility to achieve this? >> >> Django 1.0 TestCase already provides this capability, it is described >> in the relevant documentation: >> >> http://docs.djangoproject.com/en/dev/topics/testing/#urlconf-configur... >> >> >> >> > -- >> > Filip Gruszczyński >> >> -- >> Ramiro Moraleshttp://rmorales.net > > >
-- Filip Gruszczyński --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

