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

Function _test

tests/envcontext_test.py:13–17  ·  view source on GitHub ↗
(*, before, patch, expected)

Source from the content-addressed store, hash-verified

11
12
13def _test(*, before, patch, expected):
14 env = before.copy()
15 with envcontext(patch, _env=env):
16 assert env == expected
17 assert env == before
18
19
20def test_trivial():

Calls 1

envcontextFunction · 0.90

Tested by

no test coverage detected