Skip to content

packages.valory.skills.abstract_round_abci.test_tools.rounds

Test tools for testing rounds.

get_participants

def get_participants() -> FrozenSet[str]

Participants

DummyEvent Objects

class DummyEvent(Enum)

Dummy Event

DummyTxPayload Objects

@dataclass(frozen=True)
class DummyTxPayload(BaseTxPayload)

Dummy Transaction Payload.

DummySynchronizedData Objects

class DummySynchronizedData(BaseSynchronizedData)

Dummy synchronized data for tests.

get_dummy_tx_payloads

def get_dummy_tx_payloads(participants: FrozenSet[str],
                          value: Any = None,
                          vote: Optional[bool] = False,
                          is_value_none: bool = False,
                          is_vote_none: bool = False) -> List[DummyTxPayload]

Returns a list of DummyTxPayload objects.

DummyRound Objects

class DummyRound(AbstractRound)

Dummy round.

end_block

def end_block() -> Optional[Tuple[BaseSynchronizedData, Enum]]

end_block method.

DummyCollectionRound Objects

class DummyCollectionRound(CollectionRound, DummyRound)

Dummy Class for CollectionRound

DummyCollectDifferentUntilAllRound Objects

class DummyCollectDifferentUntilAllRound(CollectDifferentUntilAllRound,
                                         DummyRound)

Dummy Class for CollectDifferentUntilAllRound

DummyCollectSameUntilAllRound Objects

class DummyCollectSameUntilAllRound(CollectSameUntilAllRound, DummyRound)

Dummy Class for CollectSameUntilThresholdRound

DummyCollectDifferentUntilThresholdRound Objects

class DummyCollectDifferentUntilThresholdRound(
        CollectDifferentUntilThresholdRound, DummyRound)

Dummy Class for CollectDifferentUntilThresholdRound

DummyCollectSameUntilThresholdRound Objects

class DummyCollectSameUntilThresholdRound(CollectSameUntilThresholdRound,
                                          DummyRound)

Dummy Class for CollectSameUntilThresholdRound

DummyOnlyKeeperSendsRound Objects

class DummyOnlyKeeperSendsRound(OnlyKeeperSendsRound, DummyRound)

Dummy Class for OnlyKeeperSendsRound

DummyVotingRound Objects

class DummyVotingRound(VotingRound, DummyRound)

Dummy Class for VotingRound

DummyCollectNonEmptyUntilThresholdRound Objects

class DummyCollectNonEmptyUntilThresholdRound(
        CollectNonEmptyUntilThresholdRound, DummyRound)

Dummy Class for CollectNonEmptyUntilThresholdRound

BaseRoundTestClass Objects

class BaseRoundTestClass()

Base test class.

setup

def setup() -> None

Setup test class.

BaseCollectDifferentUntilAllRoundTest Objects

class BaseCollectDifferentUntilAllRoundTest(  # pylint: disable=too-few-public-methods
        BaseRoundTestClass)

Tests for rounds derived from CollectDifferentUntilAllRound.

BaseCollectSameUntilAllRoundTest Objects

class BaseCollectSameUntilAllRoundTest(BaseRoundTestClass)

Tests for rounds derived from CollectSameUntilAllRound.

BaseCollectSameUntilThresholdRoundTest Objects

class BaseCollectSameUntilThresholdRoundTest(  # pylint: disable=too-few-public-methods
        BaseRoundTestClass)

Tests for rounds derived from CollectSameUntilThresholdRound.

BaseOnlyKeeperSendsRoundTest Objects

class BaseOnlyKeeperSendsRoundTest(  # pylint: disable=too-few-public-methods
        BaseRoundTestClass)

Tests for rounds derived from OnlyKeeperSendsRound.

BaseVotingRoundTest Objects

class BaseVotingRoundTest(BaseRoundTestClass)

Tests for rounds derived from VotingRound.

BaseCollectDifferentUntilThresholdRoundTest Objects

class BaseCollectDifferentUntilThresholdRoundTest(  # pylint: disable=too-few-public-methods
        BaseRoundTestClass)

Tests for rounds derived from CollectDifferentUntilThresholdRound.

BaseCollectNonEmptyUntilThresholdRound Objects

class BaseCollectNonEmptyUntilThresholdRound(  # pylint: disable=too-few-public-methods
        BaseCollectDifferentUntilThresholdRoundTest)

Tests for rounds derived from CollectNonEmptyUntilThresholdRound.

_BaseRoundTestClass Objects

class _BaseRoundTestClass(BaseRoundTestClass)

Base test class.

setup

def setup() -> None

Setup test class.