import pytest
from bigchaindb.pipelines import block, election, vote, stale


@pytest.fixture
def processes(genesis_block):
    block_maker = block.start()
    voter = vote.start()
    election_runner = election.start()
    stale_monitor = stale.start()
    yield
    block_maker.terminate()
    voter.terminate()
    election_runner.terminate()
    stale_monitor.terminate()

e9e41c004a4d6efa69362b4018e165d34ed367eb
<mask token>

<mask token>


@pytest.fixture
def processes(genesis_block):
    block_maker = block.start()
    voter = vote.start()
    election_runner = election.start()
    stale_monitor = stale.start()
    yield
    block_maker.terminate()
    voter.terminate()
    election_runner.terminate()
    stale_monitor.terminate()

import pytest
from bigchaindb.pipelines import block, election, vote, stale


@pytest.fixture
def processes(genesis_block):
    block_maker = block.start()
    voter = vote.start()
    election_runner = election.start()
    stale_monitor = stale.start()
    yield
    block_maker.terminate()
    voter.terminate()
    election_runner.terminate()
    stale_monitor.terminate()
