Exemplo n.º 1
0
def test__health_check_with_wrong_token():
    client = Client(account_id="wrong_account",
                    access_token="wrong_key",
                    start_date="2019-03-03T10:00")
    alive, error = client.health_check()

    assert not alive
    assert error == "Error: 190, Invalid OAuth access token."
Exemplo n.º 2
0
def test__health_check_with_wrong_token(config_with_wrong_token):
    client = Client(**config_with_wrong_token)
    alive, error = client.health_check()

    assert not alive
    assert error == "Error: 190, Invalid OAuth access token."