ramp_frontend.testing.login_scope

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

Context manager to log-in during the with scope.

Parameters
clientflask.testing.FlaskClient

The testing client used for unit testing.

usernamestr

The user’s name.

passwordstr

The user’s password.

Returns
clientflask.testing.FlaskClient

A client which is logged-in for the duration of the with scope.