开发者

Does Django automatically add tests to my application?

开发者 https://www.devze.com 2023-02-28 19:45 出处:网络
I\'m using Django within PyDev. I started creating tests for my application. I wrote a single test (in tests.py) and 开发者_C百科issued python manage.py test my_application. The output was:

I'm using Django within PyDev. I started creating tests for my application. I wrote a single test (in tests.py) and 开发者_C百科issued python manage.py test my_application. The output was:

ran 188 tests in 5.59s

Why did it run 188 tests while I have only one test?

EDIT: All the tests passed.


I think it runs tests of all the INSTALLED_APPS. This may include apps from django.contrib or other third party apps that you added. 187 is probably the number of tests that were found for all those apps. Hence 187 + 1 gives the ran 188 tests.

0

精彩评论

暂无评论...
验证码 换一张
取 消