﻿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
20316	TestCase will let code rollback and commit without warning	uberj@…	nobody	"The docs for [https://docs.djangoproject.com/en/1.3/topics/testing/#django.test.TransactionTestCase TransactionTestCase] say `TestCase` ""prevents the code under test from issuing any commit or rollback operations on the database"". Code running in a `TestCase` that uses `commit` or `rollback` will still ''appear'' to work. Of course, those functions don't do anything, they have been replaced by a `nop` function that silently does nothing -- see [https://github.com/django/django/blob/master/django/test/testcases.py#L75 here].

The 'silently' part does not help a user that is using `TestCase` but should be using `TransactionTestCase`."	Cleanup/optimization	closed	Documentation	dev	Normal	fixed	testcase transactions		Accepted	1	1	0	0	1	0
