The request factory¶class RequestFactory[source]¶The RequestFactoryThe API for the RequestFactoryIt only has access to the HTTP methods get()post(), put()delete(), head()options(), and trace().These m
标签:testing
Django2.0手册:Testing tools
Django provides a small set of tools that come in handy when writing tests.The test client¶Some of the things you can do with the test client are:Note that the test client is not intended to be a repl
Django2.0手册:Testing in Django
test suiteThe best part is, it’s really easy.The preferred way to write tests in Django is using the unittestWriting and running tests document.You can also use any otherUsing different testing framew