MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / _write_package

Function _write_package

tests/cli/test_cli.py:37–42  ·  view source on GitHub ↗
(tmp_path: Path, name: str)

Source from the content-addressed store, hash-verified

35
36
37def _write_package(tmp_path: Path, name: str) -> Path:
38 pkg = tmp_path / name
39 pkg.mkdir()
40 (pkg / "__init__.py").write_text("", encoding="utf-8")
41 (pkg / "models.py").write_text("", encoding="utf-8")
42 return pkg
43
44
45def _write_migrations(pkg: Path, migration_names: list[str]) -> None:

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…