<reponame>QuTech-Delft/qilib<filename>src/tests/test_data/dummy_storage.py<gh_stars>1-10
from abc import ABC
from typing import Any

from qilib.utils.storage import StorageMongoDb


class DummyStorage(StorageMongoDb, ABC):

    def __init__(self, name, **kwargs):
        """ Dummy storage used for testing."""
        super().__init__(name, **kwargs)

    def encode_serialize_data(self, data: Any) -> Any:
        return self._encode_data(self._serialize(data))

from abc import ABC
from typing import Any

from qilib.utils.storage import StorageMongoDb


class DummyStorage(StorageMongoDb, ABC):

    def __init__(self, name, **kwargs):
        """ Dummy storage used for testing."""
        super().__init__(name, **kwargs)

    def encode_serialize_data(self, data: Any) -> Any:
        return self._encode_data(self._serialize(data))
Dummy storage used for testing.