Create a fake site-packages.
(modules_tmp_path, monkeypatch)
| 144 | |
| 145 | @pytest.fixture |
| 146 | def 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 |
nothing calls this directly
no outgoing calls
no test coverage detected