﻿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
36680	Formatters run on `TemplateCommand` make `admin_scripts` tests brittle	Natalia Bidart	Jacob Walls	"Some `admin_scripts` tests, such as those for `startproject`, assert literal file contents generated from templates. Because `TemplateCommand` runs formatters before exiting (`run_formatters(...)`), the output can differ depending on environment details such as temporary directory path length or whether black is installed.

For example, when `black` reformats long lines during parallel test runs, strings in the generated `manage.py` file are wrapped in parentheses, causing assertion failures.

Tests should not depend on the exact output of formatters. Mocking or disabling them during test runs would make the suite more stable."	Bug	closed	Core (Management commands)	dev	Normal	fixed			Ready for checkin	1	0	0	0	0	0
