[Tutor] [BangPypers] Django test case problem

B.Nanda Kishore madhav.bnk at gmail.com
Tue Jul 28 16:52:23 CEST 2009


By default django looks for a file called *tests.py*(plural) and not *
test.py*. Check that and let us know.
Regards,
Nandakishore


On Tue, Jul 28, 2009 at 6:40 PM, VIJAY KUMAR <vnbang2003 at yahoo.com> wrote:

>  Hi,
>
>    I am running testcase from django when I run them from models.py it
> run.
>
>    But when I put the same in test.py in the same directory where models
> is define it not even getting called.
>
>   My structure django application is  mysite
>
> Settings.py
>
>          Urls.py
>
>           Polls
>
>                  __int__.py
>
>                  models.py
>
>                  test.py
>
>                  views.py
>
> I used this command to run the test cases   python manage.py test polls
>
> Can some help me know what am I missing or should need to do something  so
> my testcase from test.py start get executed.
>
> I tried to follow this link for the same
> http://docs.djangoproject.com/en/dev/topics/testing/
>
>
>
>
>
>
>
> with thanks
>
> Vijay
>
>
> ------------------------------
> Love Cricket? Check out live scores, photos, video highlights and more. Click
> here <http://in.rd.yahoo.com/tagline_cricket_2/*http://cricket.yahoo.com>.
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090728/8fdc38ce/attachment.htm>


More information about the Tutor mailing list