I see. Thanks a lot. 2009/3/19 Preston Timmons <[email protected]>: > > Hi Filip, > The Django test runner looks for tests in two places in an > application--the models.py file and an optional tests.py file. If you > want to run tests for your views you can move your tests into a file > called tests.py in your application. > > An example of testing a view with doctests can be found here: > http://docs.djangoproject.com/en/dev/topics/testing/#overview-and-a-quick-example > > Preston > > > > On Mar 18, 6:34 pm, Filip Gruszczyński <[email protected]> wrote: >> I am trying to have my function tested using docstring with examples. >> When I put it into models.py of an app, it gets tested. If I put >> it into views.py, it is not tested; this happens also, if I add >> another module (which I import). How can make testing framework test >> those? >> >> -- >> Filip Gruszczyński > > >
-- 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 -~----------~----~----~----~------~----~------~--~---

