summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2016-09-23 16:44:18 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2016-09-26 08:39:25 (GMT)
commit66665d94ffc27c6a77f491a6e3e49628ea55343e (patch)
treeac4549ed43ab31f19ebbfc4ef0be709d02c22dff
parent6fce83ff059d589a19784f3650b0d7db9790f0e4 (diff)
downloadhobo-66665d94ffc27c6a77f491a6e3e49628ea55343e.zip
hobo-66665d94ffc27c6a77f491a6e3e49628ea55343e.tar.gz
hobo-66665d94ffc27c6a77f491a6e3e49628ea55343e.tar.bz2
tests: use a transactional db for multitenant tests
-rw-r--r--tests_multitenant/conftest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests_multitenant/conftest.py b/tests_multitenant/conftest.py
index c90f2c9..ca70a4c 100644
--- a/tests_multitenant/conftest.py
+++ b/tests_multitenant/conftest.py
@@ -5,8 +5,9 @@ import json
import pytest
+
@pytest.fixture(scope='function')
-def tenants(db, request, settings):
+def tenants(transactional_db, request, settings):
from hobo.multitenant.models import Tenant
base = tempfile.mkdtemp('combo-tenant-base')
settings.TENANT_BASE = base