@pytest.mark.asyncio
async def test_failed_api_call(httpx_mock: HTTPXMock):
    json_obj = {'error': 'id not found'}
    httpx_mock.add_response(json=json_obj, status_code=404)
    response: ResponseObject = (await client.coin('eth'))
    assert (response.status_code == 404)
@pytest.mark.asyncio
async def test_failed_api_call(httpx_mock: HTTPXMock):
    json_obj = {'error': 'id not found'}
    httpx_mock.add_response(json=json_obj, status_code=404)
    response: ResponseObject = (await client.coin('eth'))
    assert (response.status_code == 404)