MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / mock_commands

Function mock_commands

tests/main_test.py:101–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99
100@pytest.fixture
101def mock_commands():
102 with contextlib.ExitStack() as ctx:
103 mcks = {f: ctx.enter_context(mock.patch.object(main, f)) for f in FNS}
104 yield auto_namedtuple(**mcks)
105
106
107@pytest.fixture

Callers

nothing calls this directly

Calls 1

auto_namedtupleFunction · 0.90

Tested by

no test coverage detected