def test_set_response_where_implicit(): _info = setup_conv() oper = AsyncAuthn(_info['conv'], _info['io'], None) oper.req_args['response_type'] = ['id_token'] args = None set_response_where(oper, args) assert oper.response_where == "fragment"
def test_set_response_where_code_args(): _info = setup_conv() oper = AsyncAuthn(_info['conv'], _info['io'], None) oper.req_args['response_type'] = ['id_token token'] args = {'response_type': ['id_token token'], 'where': 'fragment'} set_response_where(oper, args) assert oper.response_where == "fragment"