ramp_frontend.testing
.login_scope¶
-
ramp_frontend.testing.
login_scope
(client, username, password)¶ Context manager to log-in during the
with
scope.- Parameters
- client
flask.testing.FlaskClient
The testing client used for unit testing.
- usernamestr
The user’s name.
- passwordstr
The user’s password.
- client
- Returns
- client
flask.testing.FlaskClient
A client which is logged-in for the duration of the
with
scope.
- client