MCPcopy
hub / github.com/pre-commit/pre-commit / test_healthy_default_creator

Function test_healthy_default_creator

tests/languages/python_test.py:160–170  ·  view source on GitHub ↗
(python_dir)

Source from the content-addressed store, hash-verified

158
159
160def test_healthy_default_creator(python_dir):
161 prefix, tmpdir = python_dir
162
163 python.install_environment(prefix, C.DEFAULT, ())
164
165 # should be healthy right after creation
166 assert python.health_check(prefix, C.DEFAULT) is None
167
168 # even if a `types.py` file exists, should still be healthy
169 tmpdir.join('types.py').ensure()
170 assert python.health_check(prefix, C.DEFAULT) is None
171
172
173def test_healthy_venv_creator(python_dir):

Callers

nothing calls this directly

Calls 2

install_environmentMethod · 0.80
health_checkMethod · 0.80

Tested by

no test coverage detected