diff --git a/pytest.ini b/pytest.ini index 370e5a9..f082a2f 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,2 +1,9 @@ [pytest] DJANGO_SETTINGS_MODULE=sigi.settings.test + +# REUSING DATABASE BY DEFAULT (as a performance optimization) +# http://pytest-django.readthedocs.org/en/latest/database.html#example-work-flow-with-reuse-db-and-create-db +# +# Run "py.test --create-db" if you need to recreate the database +# +addopts = --reuse-db