Browse Source

Reuse the database in tests by default

producao
Marcio Mazza 10 years ago
parent
commit
969ae22882
  1. 7
      pytest.ini

7
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

Loading…
Cancel
Save