MCPcopy
hub / github.com/pytest-dev/pytest / cache_dir_from_config

Method cache_dir_from_config

src/_pytest/cacheprovider.py:135–141  ·  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

133
134 @staticmethod
135 def cache_dir_from_config(config: Config, *, _ispytest: bool = False) -> Path:
136 """Get the path to the cache directory for a Config.
137
138 :meta private:
139 """
140 check_ispytest(_ispytest)
141 return resolve_from_str(config.getini("cache_dir"), config.rootpath)
142
143 def warn(self, fmt: str, *, _ispytest: bool = False, **args: object) -> None:
144 """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