# Path: crowd_anki/anki/adapters/anki_deck.py
# class NamedLazyDeck(LazyDeck):
#     def __init__(self, name: str, name_initializer: Callable[[str], dict]):
#         super().__init__(lambda: name_initializer(name))
#         self._name = name
# 
#     @property
#     def name(self):
#         return self._name


from expects import expect, equal, be
from mamba import description, it, before
from unittest.mock import MagicMock
from crowd_anki.anki.adapters.anki_deck import NamedLazyDeck


test_name = 'test_name'

with description(NamedLazyDeck) as self:
    with before.each:
        self.initializer = MagicMock()

# Path: crowd_anki/anki/adapters/anki_deck.py
# class NamedLazyDeck(LazyDeck):
#     def __init__(self, name: str, name_initializer: Callable[[str], dict]):
#         super().__init__(lambda: name_initializer(name))
#         self._name = name
# 
#     @property
#     def name(self):
#         return self._name


# Path: test/anki/adapters/deck_spec.py
from expects import expect, equal, be
from mamba import description, it, before
from unittest.mock import MagicMock
from crowd_anki.anki.adapters.anki_deck import NamedLazyDeck



test_name = 'test_name'

with description(NamedLazyDeck) as self:
    with before.each:
        self.initializer = MagicMock()

        self.deck = NamedLazyDeck(test_name, self.initializer)