-
Notifications
You must be signed in to change notification settings - Fork 347
testing with django's mirroring db #342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I don't think so. @pelme Django uses this I have tried the following: @pytest.fixture
def use_multidb_for_django_testcases(monkeypatch):
monkeypatch.setattr('django.test.TransactionTestCase.multi_db', True,
raising=False)
@pytest.fixture
def django_multidb(use_multidb_for_django_testcases, db):
return db
def test_foo(django_multidb, …): With
With
|
I think once we have multi-db support, then this should follow naturally, so I'll close as a duplicate (there are many issues about mutli db). |
Hello.
Is any way to use Django's mirror db function like here?
The text was updated successfully, but these errors were encountered: