def test_read(list_of_dicts_json, template, expected_rows): er = EzReader(template) assert expected_rows == er.read(list_of_dicts_json)
def test_invalid_template(template, error): with pytest.raises(error): EzReader(template)