Skip to content
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

Keep initial data in database after migration test #438

Open
medihack opened this issue Mar 26, 2024 · 0 comments
Open

Keep initial data in database after migration test #438

medihack opened this issue Mar 26, 2024 · 0 comments

Comments

@medihack
Copy link

medihack commented Mar 26, 2024

I am using django-test-migrations with pytest. My project depends on some initial data migration. After a migration test runs (using the migrator fixture) it seems my initial data is gone. I tried to set @pytest.mark.django_db(transaction=True, serialized_rollback=True), but the migrator does not seem to respect the serialized_rollback option. Is there another way to keep the initial data?

EDIT: I re-opened the issue as I am pretty sure now that it is an issue with django-test-migrations.

@medihack medihack reopened this Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant