def METHOD_NAME(self) -> None:
    """Test required defined as a string."""
    with pytest.raises(ValidationError) as excinfo:
        RunwayTestDefinitionModel.parse_obj(
            {"required": "something", "type": "yamllint"}
        )
    error = excinfo.value.errors()[0]
    assert error["loc"] == ("required",)
    assert error["msg"] == "field can only be a string if it's a lookup"