コード例 #1
0
def reincarnatedCLI(nodeRegsForCLI, newLooper, tdir, cli):
    """
    Creating a new cli instance is equivalent to starting and stopping a cli
    """
    cli = newCLI(nodeRegsForCLI, newLooper, tdir, unique_name='reincarnate')
    yield cli
    cli.close()
コード例 #2
0
def cli2(cliLooper, tdir, tdirWithClientPoolTxns, tdirWithNodeKeepInited,
         tconf):
    tempDir = os.path.join(tdirWithClientPoolTxns, "cl2")
    initDirWithGenesisTxns(tempDir, tconf, tdirWithClientPoolTxns)
    cli = newCLI(cliLooper, tempDir, tempDir)
    yield cli
    cli.close()
コード例 #3
0
def cli1(cliLooper, tdir, tdirWithPoolTxns, tdirWithDomainTxns,
         tdirWithNodeKeepInited, tconf):
    tempDir = os.path.join(tdir, "cl1")
    initDirWithGenesisTxns(tempDir, tconf, tdirWithPoolTxns,
                           tdirWithDomainTxns)
    cli = newCLI(cliLooper, tempDir)
    yield cli
    cli.close()
コード例 #4
0
def cli(tdir, cliLooper, tdirWithPoolTxns, tdirWithDomainTxns,
        tdirWithClientPoolTxns, tdirWithNodeKeepInited):
    cli = newCLI(cliLooper,
                 tdirWithClientPoolTxns,
                 tdirWithPoolTxns,
                 nodes_chroot=tdir)
    yield cli
    cli.close()
コード例 #5
0
def aliceCli(tdir, cliLooper, tdirWithPoolTxns, tdirWithDomainTxns,
             tdirWithClientPoolTxns, tdirWithNodeKeepInited):
    cli = newCLI(cliLooper,
                 tdirWithClientPoolTxns,
                 tdirWithPoolTxns,
                 nodes_chroot=tdir,
                 unique_name='alice')
    yield cli
    cli.close()
コード例 #6
0
def cli1(cliLooper, tdir, tdirWithPoolTxns, tdirWithDomainTxns,
        tdirWithNodeKeepInited, tconf):
    tempDir = os.path.join(tdir, "cl1")
    initDirWithGenesisTxns(tempDir, tconf, tdirWithPoolTxns, tdirWithDomainTxns)
    return newCLI(cliLooper, tempDir)
コード例 #7
0
ファイル: conftest.py プロジェクト: aigoncharov/plenum
def cli(cliLooper, tdir, tdirWithPoolTxns, tdirWithDomainTxns,
        tdirWithNodeKeepInited):
    cli = newCLI(cliLooper, tdir)
    yield cli
    cli.close()
コード例 #8
0
def reincarnatedCLI(nodeRegsForCLI, newLooper, tdir, cli):
    """
    Creating a new cli instance is equivalent to starting and stopping a cli
    """
    return newCLI(nodeRegsForCLI, newLooper, tdir)
コード例 #9
0
def cli2(cliLooper, tdir, tdirWithPoolTxns, tdirWithDomainTxns,
         tdirWithNodeKeepInited, tconf):
    tempDir = os.path.join(tdir, "cl2")
    initDirWithGenesisTxns(tempDir, tconf, tdirWithPoolTxns,
                           tdirWithDomainTxns)
    return newCLI(cliLooper, tempDir)
コード例 #10
0
ファイル: conftest.py プロジェクト: evernym/plenum
def cli(cliLooper, tdir, tdirWithPoolTxns, tdirWithDomainTxns,
        tdirWithNodeKeepInited):
    return newCLI(cliLooper, tdir)
コード例 #11
0
ファイル: conftest.py プロジェクト: qyynuaa/plenum
def cli(cliLooper, tdir, tdirWithPoolTxns, tdirWithDomainTxns,
        tdirWithNodeKeepInited):
    return newCLI(cliLooper, tdir)
コード例 #12
0
ファイル: conftest.py プロジェクト: pradeep1991singh/plenum
def aliceCli(cliLooper, tdir, tdirWithPoolTxns, tdirWithDomainTxns,
             tdirWithNodeKeepInited):
    return newCLI(cliLooper, tdir, unique_name='alice')
コード例 #13
0
ファイル: test_cli_startup.py プロジェクト: evernym/plenum
def reincarnatedCLI(nodeRegsForCLI, newLooper, tdir, cli):
    """
    Creating a new cli instance is equivalent to starting and stopping a cli
    """
    return newCLI(nodeRegsForCLI, newLooper, tdir)