From 969ae22882d6318a5206c3d17a186ff45f889e24 Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Mon, 6 Oct 2014 13:36:51 -0300 Subject: [PATCH] Reuse the database in tests by default --- pytest.ini | 7 +++++++ 1 file changed, 7 insertions(+) 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