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

Function _run_cli

tests/cli/test_cli.py:67–72  ·  view source on GitHub ↗
(args: list[str])

Source from the content-addressed store, hash-verified

65
66
67async def _run_cli(args: list[str]) -> SimpleNamespace:
68 stdout = io.StringIO()
69 stderr = io.StringIO()
70 with contextlib.redirect_stdout(stdout), contextlib.redirect_stderr(stderr):
71 exit_code = await cli_module.run_cli_async(args)
72 return SimpleNamespace(exit_code=exit_code, output=stdout.getvalue() + stderr.getvalue())
73
74
75@pytest.mark.asyncio

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…