示例#1
0
def cli():
    return CliClient()
示例#2
0
def migrate(cli: CliClient, mongo: MongoClient):
    """Migrate main DB and tenant DBs using useradm's CLI interface."""
    cli.migrate()
    cli.migrate(tenant_id=TENANT_ONE)
    cli.migrate(tenant_id=TENANT_TWO)