Skip to content

Conversation

xmatos-so
Copy link

The serialized_aliases argument of the setup_databases function determines what subset of aliases test databases should have their state serialized to allow usage of the serialized_rollback feature. If it's not provided, it defaults to aliases.

Django 5 removed the SERIALIZE test setting, as it can be inferred from the databases with the serialized_rollback option enabled. Django's default test runner, DiscoverRunner, uses logic similar to this to build the serialized_aliases set and pass it to setup_databases, as implemented in django.test.runner.DiscoverRunner.run_tests.

@xmatos-so xmatos-so marked this pull request as draft January 10, 2025 14:08
@bluetech
Copy link
Member

bluetech commented Apr 1, 2025

Thanks for the PR @xmatos-so. Something like this is now implemented in #1186 and will be included in the next release.

@bluetech bluetech closed this Apr 1, 2025
@xmatos-so
Copy link
Author

Awesome news! Thank you!

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

Successfully merging this pull request may close these issues.

3 participants