django-testing
Writing Django Unit Tests for Views [duplicate]
This question already has answers here: How do I unit test Django Views? (3 answers) 开发者_运维百科[详细]
2022-12-12 18:54 分类:问答How to test custom template tags in Django?
I\'m adding a set of template tags to a Django application and I\'m not sure how to test them.I\'ve used them in my templates and they seem to be working but I was looking for something more formal.Th[详细]
2022-12-10 22:07 分类:问答Django Testing - Hard code URLs or Not
This is a best-practices question. When writing tests in Django, is it better to hard code urls in your tests.py, or to use the dispatch\'s reverse() function to retrieve the correct url?[详细]
2022-12-09 03:40 分类:问答Configure Django to find all doctests in all modules?
If I run the following command: >python manage.py test Django looks at tests.py in my application, and runs any doctests or unit tests in that file. It also looks at the __ test __ dictionary fo[详细]
2022-12-09 02:15 分类:问答