def test_extract_file_null(sample_file): filters = ("foo=bar",) expected_result = {"foo": [], "_foo": []} result = extract(sample_file, filters) assert result == expected_result
def test_extract_url(sample_url, filters, expected_result): result = extract(sample_url, filters) assert result == expected_result
def test_extract_file(sample_file, filters, expected_result): result = extract(sample_file, filters) assert result == expected_result