Skip to content

Lazy test database creation - #34

Open
andrejtokarcik wants to merge 10 commits into
Almad:masterfrom
andrejtokarcik:master
Open

Lazy test database creation#34
andrejtokarcik wants to merge 10 commits into
Almad:masterfrom
andrejtokarcik:master

Conversation

@andrejtokarcik

Copy link
Copy Markdown
Contributor

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant