﻿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
20004	move test helpers out of TransactionTestCase	zalew	zalew	"django.test.testcases.TestCase inherits from TransactionTestCase, so when django.db is not used in the project, it complains during testing about ""ImproperlyConfigured: settings.DATABASES"". A solution is to use SimpleTestCase (which TransactionTestCase inherits from), but this class doesn't contain the useful test helpers currently located in TransactionTestCase, which aren't in any way related to db handling:

* assertRedirects
* assert(Not)Contains
* assertFormError
* assertTemplate(Not)Used
* _urlconf_setup(teardown).

Proposal: move them out either to SimpleTestCase, or a separate class other tests (including TransactionTestCase) can inherit from, so they can be used in non-db test cases.

ref: https://github.com/django/django/blob/master/django/test/testcases.py
"	Cleanup/optimization	closed	Testing framework	1.5	Normal	fixed	testing		Accepted	0	0	0	0	0	0
