Skip to content

packages.valory.skills.abstract_round_abci.tests.test_io.test_ipfs

This module contains tests for the IPFS interactions.

TestIPFSInteract Objects

class TestIPFSInteract()

Test IPFSInteract.

setup_method

def setup_method() -> None

Setup test class.

test_store_and_send_and_back

@pytest.mark.parametrize("multiple", (True, False))
def test_store_and_send_and_back(multiple: bool, dummy_obj: StoredJSONType,
                                 dummy_multiple_obj: Dict[str, StoredJSONType],
                                 tmp_path: PosixPath) -> None

Test store -> send -> download -> read of objects.

test_store_fails

def test_store_fails(dummy_multiple_obj: Dict[str, StoredJSONType]) -> None

Tests when "store" fails.

test_load_fails

def test_load_fails(dummy_multiple_obj: Dict[str, StoredJSONType]) -> None

Tests when "load" fails.