# -*- coding: utf-8 -*-
from bw2data.serialization import SerializedDict
from bw2data.data_store import DataStore


class MockMetadata(SerializedDict):
    filename = "mock-meta.json"


mocks = MockMetadata()


class MockDS(DataStore):
    """Mock DataStore for testing"""

    _metadata = mocks
    validator = lambda x, y: True
    dtype_fields = []

    def process_data(self, row):
        return (), 0
