﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
36008	Document that TransactionTestCase.databases calls flush at the end of each test run	Sviatoslav Abakumov	Chiemezuo	"The docs on [https://docs.djangoproject.com/en/5.1/topics/testing/tools/#django.test.TransactionTestCase.databases django.test.TransactionTestCase.databases] mention that Django flushes the test DB at the start of the test run (emphasis mine):

> However, a big part of the time taken to run a Django `TestCase` is consumed by the call to `flush` that ensures that you have a clean database **at the start** of each test run.

> As an optimization, Django only flushes the `default` database **at the start** of each test run.

However, after tracing the code, I believe that Django flushes the DB [https://github.com/django/django/blob/stable/5.1.x/django/test/testcases.py#L1236-L1244 at the end] of the test run."	Bug	closed	Testing framework	5.1	Normal	fixed		Jacob Walls	Ready for checkin	1	0	0	0	1	0
