def METHOD_NAME():
    detector = Detector(schema_patch={"missingValues": ["-"]})
    resource = TableResource(path="data/table.csv", detector=detector)
    report = resource.validate()
    assert report.valid
    assert resource.schema.to_descriptor() == {
        "fields": [
            {"name": "id", "type": "integer"},
            {"name": "name", "type": "string"},
        ],
        "missingValues": ["-"],
    }