I am trying to test a django view that includes a transaction; in particular, I specify which db I want to use by transaction.atomic(using=myDb)
. However, when I run my test I get django.db.utils.ConnectionDoesNotExist: The connection myDb doesn't exist
.
Is there any way to test the view given that I'm not hitting myDb in the test? Thanks for your help!
Aucun commentaire:
Enregistrer un commentaire