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)
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)