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

Function check_existense

src/pytest_bdd/scripts.py:41–45  ·  view source on GitHub ↗

Check file or directory name for existence.

(file_name: str)

Source from the content-addressed store, hash-verified

39
40
41def check_existense(file_name: str) -> str:
42 """Check file or directory name for existence."""
43 if not os.path.exists(file_name):
44 raise argparse.ArgumentTypeError(f"{file_name} is an invalid file or directory name")
45 return file_name
46
47
48def print_generated_code(args: argparse.Namespace) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…