Django~Test View

https://docs.djangoproject.com/en/1.9/topics/testing/

http://docs.seleniumhq.org/ 

Automated testing is an extremely useful bug-killing tool for the modern Web developer.

Test

no

past

future

two

past and tuture

双杠

pub_date__lte

image

不显示在未来的问题

  • a separate TestClass for each model or view
  • a separate test method for each set of conditions you want to test
  • test method names that describe their function

Django includes LiveServerTestCase to facilitate integration with tools like Selenium.

三年有成,问苍茫~
原文地址:https://www.cnblogs.com/lynclynn/p/5227696.html