MCPcopy Create free account
hub / github.com/pytest-dev/pytest / cache_dir_from_config

Method cache_dir_from_config

src/_pytest/cacheprovider.py:99–105  ·  view source on GitHub ↗

Get the path to the cache directory for a Config. :meta private:

(config: Config, *, _ispytest: bool = False)

Source from the content-addressed store, hash-verified

97
98 @staticmethod
99 def cache_dir_from_config(config: Config, *, _ispytest: bool = False) -> Path:
100 """Get the path to the cache directory for a Config.
101
102 :meta private:
103 """
104 check_ispytest(_ispytest)
105 return resolve_from_str(config.getini("cache_dir"), config.rootpath)
106
107 def warn(self, fmt: str, *, _ispytest: bool = False, **args: object) -> None:
108 """Issue a cache warning.

Callers 1

for_configMethod · 0.80

Calls 3

check_ispytestFunction · 0.90
resolve_from_strFunction · 0.85
getiniMethod · 0.45

Tested by

no test coverage detected