From 7e0bfc9831e880f89f2abc62567394db978660ed Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Tue, 12 Apr 2016 14:32:10 -0400 Subject: [PATCH] Use --nomigrations for py.test This is for two reasons, 1) it's a lot faster when starting from a new database, and 2) since we do database work within our migrations, it doesn't actually work within py.test, which is either a bug in pytest-djano, or a horrible behavior of pytest-django. --- pytest.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest.ini b/pytest.ini index 3e3f145d85..6ce4c8e3d4 100644 --- a/pytest.ini +++ b/pytest.ini @@ -3,7 +3,7 @@ DJANGO_SETTINGS_MODULE = awx.settings.development python_paths = awx/lib/site-packages site_dirs = awx/lib/site-packages python_files = *.py -addopts = --reuse-db +addopts = --reuse-db --nomigrations markers = ac: access control test license_feature: ensure license features are accessible or not depending on license