def METHOD_NAME():
    with pytest.raises(FrictionlessException) as excinfo:
        TableResource.from_descriptor(
            {
                "name": "name",
                "path": "data/table.csv",
                "schema": "data/bad.json",
            }
        ).schema
    error = excinfo.value.error
    assert error.type == "schema-error"
    assert error.note.count("bad.json")