﻿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
20916	"Provide a ""force_login"" feature for the test client"	Marc Tamlyn	Tim Graham <timograham@…>	"At present `client.login()` takes the normal authentication parameters, runs them through the authentication backends and then logs the user in. A lot of my sites currently require the user to be logged in on every page. Consequently, every unit test which uses the client to check a page creates a user and then logs them in. When I create the user with a helper factory, I have to be careful to record the raw password of that user so I can pass it back through the hashing algorithms.

I'd like to provide `client.simple_login(user)`, which simply sets up the test client's session so that the user in question is logged in, without going through the hashing algorithms. This would include most of the business logic from the current `login()` method, but without the `authenticate()` check. This would be a minor performance improvement which probably doesn't justify itself in most cases, the main benefit is ease-of-use.

Related in a way to #15179"	New feature	closed	Testing framework	dev	Normal	fixed	auth	jon.dufresne@…	Ready for checkin	1	0	0	0	0	0
