def METHOD_NAME():
    def _t_fn(*_args):
        raise Exception("should not reach")
    @op(
        name="op_with_context",
        ins={},
        out={},
        config_schema={"some_config": Field(String)},
    )
    def op_with_context(context):
        raise Exception("should not reach")
    @job
    def job_def():
        op_with_context()
    with pytest.raises(DagsterInvalidConfigError):
        job_def.execute_in_process(
            {"ops": {"op_with_context": {"config": {"some_config": 1}}}},
        )