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

Function migrate_tests

src/pytest_bdd/scripts.py:15–19  ·  view source on GitHub ↗

Migrate outdated tests to the most recent form.

(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

13
14
15def migrate_tests(args: argparse.Namespace) -> None:
16 """Migrate outdated tests to the most recent form."""
17 path = args.path
18 for file_path in glob.iglob(os.path.join(os.path.abspath(path), "**", "*.py"), recursive=True):
19 migrate_tests_in_file(file_path)
20
21
22def migrate_tests_in_file(file_path: str) -> None:

Callers

nothing calls this directly

Calls 1

migrate_tests_in_fileFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…