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

DummyTxPayload Objects

class DummyTxPayload(BaseTxPayload)

Dummy Transaction Payload.

__init__

def __init__(sender: str, value: Any, vote: Optional[bool] = False, round_count: int = ROUND_COUNT_DEFAULT) -> None

Initialize a dummy transaction payload.

value

@property
def value() -> Any

Get the tx value.

vote

@property
def vote() -> Optional[bool]

Get the vote value.

DummySynchronizedSata Objects

class DummySynchronizedSata(BaseSynchronizedData)

Dummy synchronized data for tests.

most_voted_keeper_address

@property
def most_voted_keeper_address() -> str

Returns value for _most_voted_keeper_address.

get_dummy_tx_payloads

def get_dummy_tx_payloads(participants: FrozenSet[str], value: Any = None, vote: Optional[bool] = False, is_value_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

@classmethod
def setup(cls) -> 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

@classmethod
def setup(cls) -> None

Setup test class.

Back to top