Skip to content

packages.valory.skills.abstract_round_abci.tests.test_io.test_store

Tests for the storing functionality of abstract round abci.

TestStorer Objects

class TestStorer()

Tests for the Storer.

setup_method

def setup_method() -> None

Setup the tests.

test__get_single_storer_from_filetype

@staticmethod
@pytest.mark.parametrize(
    "filetype, custom_storer, expected_storer",
    (
        (None, None, None),
        (SupportedFiletype.JSON, None, JSONStorer.serialize_object),
        (
            SupportedFiletype.JSON,
            __dummy_custom_storer,
            JSONStorer.serialize_object,
        ),
        (None, __dummy_custom_storer, __dummy_custom_storer),
    ),
)
def test__get_single_storer_from_filetype(
        filetype: Optional[SupportedFiletype],
        custom_storer: Optional[CustomStorerType],
        expected_storer: Optional[SupportedStorerType],
        tmp_path: PosixPath) -> None

Test _get_single_storer_from_filetype.

test_store

def test_store() -> None

Test store.

test_store_multiple

def test_store_multiple() -> None

Test store when multiple files are present.