Configures the requests-cache session
()
| 98 | |
| 99 | |
| 100 | def get_session() -> CachedSession: |
| 101 | """Configures the requests-cache session""" |
| 102 | cache_path = platformdirs.user_cache_path("pytest-plugin-list") |
| 103 | cache_path.mkdir(exist_ok=True, parents=True) |
| 104 | cache_file = cache_path.joinpath("http_cache.sqlite3") |
| 105 | return CachedSession(backend=SQLiteCache(cache_file)) |
| 106 | |
| 107 | |
| 108 | def pytest_plugin_projects_from_pypi(session: CachedSession) -> dict[str, int]: |