def METHOD_NAME(factory, monkeypatch):
    monkeypatch.setattr(os, "environ", {"MY_ENV_VAR": "foobar"})
    script_dir = os.path.dirname(os.path.abspath(__file__))
    op_def = factory(os.path.join(script_dir, "test.sh"), name="foobar")
    @graph(
        config=ConfigMapping(
            config_schema={},
            config_fn=lambda cfg: {},
        ),
        out={"result": GraphOut()},
    )
    def my_graph():
        return op_def()
    result = my_graph.execute_in_process()
    assert result.output_value() == "this is a test message: foobar\n"