MCPcopy Create free account
hub / github.com/pallets/flask / site_packages

Function site_packages

tests/conftest.py:146–152  ·  view source on GitHub ↗

Create a fake site-packages.

(modules_tmp_path, monkeypatch)

Source from the content-addressed store, hash-verified

144
145@pytest.fixture
146def site_packages(modules_tmp_path, monkeypatch):
147 """Create a fake site-packages."""
148 py_dir = f"python{sys.version_info.major}.{sys.version_info.minor}"
149 rv = modules_tmp_path / "lib" / py_dir / "site-packages"
150 rv.mkdir(parents=True)
151 monkeypatch.syspath_prepend(os.fspath(rv))
152 return rv
153
154
155@pytest.fixture

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected