@pytest.mark.asyncio
async def test_bad_response(self, httpx_mock):
    test_url = 'https://bad'
    httpx_mock.add_response(status_code=500)
    response = (await get_product_name(url=test_url))
    assert (response is None)
@pytest.mark.asyncio
async def test_bad_response(self, httpx_mock):
    test_url = 'https://bad'
    httpx_mock.add_response(status_code=500)
    response = (await get_product_name(url=test_url))
    assert (response is None)