Exemplo n.º 1
0
def test_load_client_disabled_app(dummy_application):
    dummy_application.is_enabled = False
    with pytest.raises(DisabledClientIdError):
        load_client(dummy_application.client_id)
Exemplo n.º 2
0
def test_load_client_malformed_id():
    with pytest.raises(InvalidClientIdError):
        load_client('foobar')
Exemplo n.º 3
0
def test_load_client(dummy_application):
    assert load_client(dummy_application.client_id) == dummy_application
Exemplo n.º 4
0
def test_load_client_disabled_app(dummy_application):
    dummy_application.is_enabled = False
    with pytest.raises(DisabledClientIdError):
        load_client(dummy_application.client_id)
Exemplo n.º 5
0
def test_load_client_malformed_id():
    with pytest.raises(InvalidClientIdError):
        load_client('foobar')
Exemplo n.º 6
0
def test_load_client(dummy_application):
    assert load_client(dummy_application.client_id) == dummy_application