ramp_frontend.testing.login

ramp_frontend.testing.login(client, username, password)

Simulate a log-in from a user.

After the log-in request, the client will be redirect to the expected page.

Parameters
clientflask.testing.FlaskClient

The testing client used for unit testing.

usernamestr

The user’s name.

passwordstr

The user’s password.

Returns
responseflask.wrappers.Response

The response of the client.