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

Function _write_settings

tests/cli/test_cli.py:62–64  ·  view source on GitHub ↗
(tmp_path: Path, content: str, module_name: str)

Source from the content-addressed store, hash-verified

60
61
62def _write_settings(tmp_path: Path, content: str, module_name: str) -> str:
63 (tmp_path / f"{module_name}.py").write_text(content, encoding="utf-8")
64 return module_name
65
66
67async def _run_cli(args: list[str]) -> SimpleNamespace:

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…