Open
Description
Currently I've running several unittests with py.test that needs a database. The tests working fine.
But I#ve running with --reuse-db
and the following database settings:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'db.sqlite3'
}
}
The Tests will work fine, but the databse db.sqlite3 won't getting created / the file is missing while the tests run / after the tests.
I use django unittests and run py.test with the following: py.test -v -s --ds=envisia.test.settings --reuse-db
also I'm running on Python 3.4.1, pytest 2.6.1 and Django 1.7rc2.
On PostgreSQL the database will be created and will exists..
Edit: Also PostgreSQL tests run faster even when I run sqlite3 on :memory:
which is somehow strange?! But I think that's cause of PostgreSQL --reuse-db works.