Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Lazy test database creation #34

Open
wants to merge 10 commits into
from

Conversation

Projects
None yet
1 participant
Contributor

andrejtokarcik commented May 18, 2011

Introducing laziness in the test database creation process: The test database is created if and only if a test with no_database_interaction set to False is present in the set of the tests being run.

Some minor code improvements included as well (commenting out the leave_transaction_management() call might be disputable, though).

BTW, I'm thinking about making DjangoDatabasePlugin in order to separate the stuff always needed (with fast pure unit tests as well as with database tests; such as handling mail outboxes, etc.) and the procedures relevant only for the database tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment