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

Function test_healthy_venv_creator

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

Source from the content-addressed store, hash-verified

171
172
173def test_healthy_venv_creator(python_dir):
174 # venv creator produces slightly different pyvenv.cfg
175 prefix, tmpdir = python_dir
176
177 with envcontext((('VIRTUALENV_CREATOR', 'venv'),)):
178 python.install_environment(prefix, C.DEFAULT, ())
179
180 assert python.health_check(prefix, C.DEFAULT) is None
181
182
183def test_unhealthy_python_goes_missing(python_dir):

Callers

nothing calls this directly

Calls 3

envcontextFunction · 0.90
install_environmentMethod · 0.80
health_checkMethod · 0.80

Tested by

no test coverage detected