From 18ea2e0201e800519547ea4d5500b7020b9a1d86 Mon Sep 17 00:00:00 2001 From: Wayne Witzel III Date: Fri, 5 Feb 2016 21:40:01 -0500 Subject: [PATCH] default to reuse-db for testing --- Makefile | 2 +- pytest.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c5735982b9..90db6a796c 100644 --- a/Makefile +++ b/Makefile @@ -363,7 +363,7 @@ test_unit: # Run all API unit tests with coverage enabled. test_coverage: - py.test --cov=awx --cov-report=xml --junitxml=./reports/junit.xml awx/main/tests awx/api/tests awx/fact/tests + py.test --create-db --cov=awx --cov-report=xml --junitxml=./reports/junit.xml awx/main/tests awx/api/tests awx/fact/tests # Output test coverage as HTML (into htmlcov directory). coverage_html: diff --git a/pytest.ini b/pytest.ini index a679c1bdc4..90f45f0b2a 100644 --- a/pytest.ini +++ b/pytest.ini @@ -3,4 +3,4 @@ DJANGO_SETTINGS_MODULE = awx.settings.development python_paths = awx/lib/site-packages site_dirs = awx/lib/site-packages python_files = *.py -addopts = --create-db +addopts = --reuse-db