Skip to content

packages.valory.skills.abstract_round_abci.tests.test_dialogues

Test the dialogues.py module of the skill.

test_dialogues_creation

@pytest.mark.parametrize(
    "dialogues_cls,expected_role_from_first_message",
    [
        (AbciDialogues, AbciDialogue.Role.CLIENT),
        (HttpDialogues, HttpDialogue.Role.CLIENT),
        (SigningDialogues, SigningDialogue.Role.SKILL),
        (LedgerApiDialogues, LedgerApiDialogue.Role.AGENT),
        (ContractApiDialogues, ContractApiDialogue.Role.AGENT),
        (TendermintDialogues, TendermintDialogue.Role.AGENT),
    ],
)
def test_dialogues_creation(dialogues_cls: Type[Model],
                            expected_role_from_first_message: Enum) -> None

Test XDialogues creations.

test_ledger_api_dialogue

def test_ledger_api_dialogue() -> None

Test 'LedgerApiDialogue' creation.

test_contract_api_dialogue

def test_contract_api_dialogue() -> None

Test 'ContractApiDialogue' creation.

test_ipfs_dialogue

def test_ipfs_dialogue() -> None

Test 'IpfsDialogues' creation.