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