-
Notifications
You must be signed in to change notification settings - Fork 347
alternative database setup shemes #37
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
The current plan is to provide more granular and documented fixtures for each part of the db setup that can be replaced in a project conftest.py. I.e. putting something like this in a project conftest.py would override the default pytest-django provided @pytest.fixture(scope='session')
def django_db_setup():
shutil.copy('sqlite_template.db', 'test_sqlite.db') Do you have any thoughts on this Ronny? |
looks nice |
Closing, since it is supposed to be fixed in 3.0. |
at work we have a large set of fixtures, an option to copy a database from a template would be helpful
it can be file copies in sqlite and db template in postgresql
The text was updated successfully, but these errors were encountered: