Exemple #1
0
def _run_load(tx_left, stats):
    logstats.thread.start(stats)
    client = temp_client()

    while True:
        tx = client.create()

        stats['transactions'] += 1

        if tx_left is not None:
            tx_left -= 1
            if tx_left == 0:
                break
Exemple #2
0
def _run_load(tx_left, stats):
    logstats.thread.start(stats)
    client = temp_client()

    while True:
        tx = client.create()

        stats['transactions'] += 1

        if tx_left is not None:
            tx_left -= 1
            if tx_left == 0:
                break
Exemple #3
0
def client():
    from bigchaindb.client import temp_client
    return temp_client()
Exemple #4
0
def test_temp_client_returns_a_temp_client():
    from bigchaindb.client import temp_client
    client = temp_client()
    assert client.public_key
    assert client.private_key