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

Function test_no_env_noop

tests/lang_base_test.py:111–116  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

109
110
111def test_no_env_noop(tmp_path):
112 before = os.environ.copy()
113 with lang_base.no_env(Prefix(tmp_path), '1.2.3'):
114 inside = os.environ.copy()
115 after = os.environ.copy()
116 assert before == inside == after
117
118
119@pytest.fixture

Callers

nothing calls this directly

Calls 1

PrefixClass · 0.90

Tested by

no test coverage detected