Exemple #1
0
def test_jwt_with_missed_claims(validator: LTI13LaunchValidator):
    '''
    Is the JWT valid with an incorrect message type claim?
    '''

    with pytest.raises(HTTPError):
        validator.validate_login_request({'key1': 'value1'})
Exemple #2
0
def test_validate_with_required_params_in_initial_auth_request(
            validator: LTI13LaunchValidator,
            lti13_login_params: t.Dict[str, t.List[bytes]],
        ):
    '''
    Is the JWT valid with an correct message type claim?
    '''

    assert validator.validate_login_request(lti13_login_params) is True