@pytest.yield_fixture
def irunner(mocker, runner):
    with runner.isolated_filesystem():
        runner.invoke = partial(runner.invoke, catch_exceptions=False)
        yield runner
Instance of `click.testing.CliRunner` with automagically `isolated_filesystem()` called.
dataset/ETHPy150Open marcwebbie/passpie/tests/conftest.py/irunner