阅读背景:

如何在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. The main logic is done in the models/model managers and has been tested. The tags simply retrieve data and store it in a context variable such asI'm adding a set of template tags to a Django a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: