![]() The TEST dictionary in DATABASES offers a number of settings Tests will use an in-memory database by default (i.e., the database will beĬreated in memory, bypassing the filesystem entirely!). The default test database names are created by prepending test_ to the Server where tests may be interrupted by a timeout, for example. This can be useful when running tests on a continuous integration Use the test -noinput option to suppress that prompt and automatically destroy theĭatabase. Whether you want to reuse or destroy the database. Will also be applied in order to keep it up to date.Īs described in the previous section, if a test run is forcefully interrupted, If the database does not exist, it will first be created. This will preserve the test database between You can prevent the test databases from being destroyed by using the Regardless of whether the tests pass or fail, the test databases are destroyed Separate, blank databases are created for the tests. Tests that require a database (namely, model tests) will not use your “real” ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |