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

Function resolve_from_str

src/_pytest/pathlib.py:423–429  ·  view source on GitHub ↗
(input: str, rootpath: Path)

Source from the content-addressed store, hash-verified

421
422
423def resolve_from_str(input: str, rootpath: Path) -> Path:
424 input = expanduser(input)
425 input = expandvars(input)
426 if isabs(input):
427 return Path(input)
428 else:
429 return rootpath.joinpath(input)
430
431
432def fnmatch_ex(pattern: str, path: str | os.PathLike[str]) -> bool:

Callers 1

cache_dir_from_configMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected