def flask_app_authenticated_client_in_DB_with_server(flask_app_server_in_db): """ Create an authenticated flask client with that user and server in the DB. """ AUTHENTICATOR.set_user_id("1") return flask_app_server_in_db.test_client()
def flask_app_authenticated_client(flask_app): """ Create an authentaicated flask client to test HTTP responses. """ AUTHENTICATOR.set_user_id("1") return flask_app.test_client()