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

Function installed_environment

tests/languages/r_test.py:254–264  ·  view source on GitHub ↗
(
        renv_lock_file,
        hello_world_file,
        renv_folder,
        prefix,
)

Source from the content-addressed store, hash-verified

252
253@pytest.fixture
254def installed_environment(
255 renv_lock_file,
256 hello_world_file,
257 renv_folder,
258 prefix,
259):
260 env_dir = lang_base.environment_dir(
261 prefix, r.ENVIRONMENT_DIR, r.get_default_version(),
262 )
263 r.install_environment(prefix, C.DEFAULT, ())
264 yield prefix, env_dir
265
266
267def test_health_check_healthy(installed_environment):

Callers

nothing calls this directly

Calls 2

get_default_versionMethod · 0.80
install_environmentMethod · 0.80

Tested by

no test coverage detected