pytest-django
pytest-django copied to clipboard
How to use mysql back-end from a file for tests
Could somebody point me to how I can set mysql back-end up?
At the moment I have sqlite which simply reads from a file, I want something similar but with mysql.
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": "tests/test_db.sqlite",
},
"reader": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": "tests/test_db.sqlite",
},
}
Could somebody point me to how I can set mysql back-end up?
Take a look at Django database settings.
I think this repo is not the place for asking Django configuration-related questions.
But this tool provides certain features to simplify the setup. I am trying to wrap my head around it.