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

Function test_mark_config_as_used

tests/store_test.py:275–279  ·  view source on GitHub ↗
(store, tmpdir)

Source from the content-addressed store, hash-verified

273
274
275def test_mark_config_as_used(store, tmpdir):
276 with tmpdir.as_cwd():
277 f = tmpdir.join('f').ensure()
278 store.mark_config_used('f')
279 assert _select_all_configs(store) == [f.strpath]
280
281
282def test_mark_config_as_used_idempotent(store, tmpdir):

Calls 2

_select_all_configsFunction · 0.85
mark_config_usedMethod · 0.80

Tested by

no test coverage detected