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
- client
flask.testing.FlaskClient
The testing client used for unit testing.
- usernamestr
The user’s name.
- passwordstr
The user’s password.
- client
- Returns
- response
flask.wrappers.Response
The response of the client.
- response