示例#1
0
def test_raise_error_other_error():
    from adobe_analytics.client import Client

    response = {
        "error": "Bad Request",
        "error_description": "Authentication key not found",
        "error_uri": None
    }
    with pytest.raises(Exception):
        Client.raise_error(response)
示例#2
0
def test_raise_error_report_not_ready():
    from adobe_analytics.client import Client

    response = {
        "error": "report_not_ready",
        "error_description": "Report not ready",
        "error_uri": None
    }
    with pytest.raises(FileNotFoundError):
        Client.raise_error(response)