def test_download_single_result(snapshot): result = download_single_result(KNOWN_RESULT) snapshot.assert_match(result["html"])
def test_download_single_result_without_html(): result = download_single_result(KNOWN_RESULT_NO_HTML) assert result["html"] == ""
def test_download_single_result_without_html_error_handling(): result = download_single_result(KNOWN_RESULT_NO_HTML_ERROR_HANDLING) assert result["html"] == ""