@pytest.fixture(scope='function')
def prepare_storage(fake_storage: Storage, fake_coroutine) -> StorageBuilder:

    def builder(account: Account, category: Category) -> Storage:
        fake_storage.accounts.fetch_by_key = fake_coroutine(account)
        fake_storage.categories.fetch_by_key = fake_coroutine(category)
        fake_storage.operations.save = fake_coroutine(1)
        return fake_storage
    return builder
@pytest.fixture(scope='function')
def prepare_storage(fake_storage: Storage, fake_coroutine) -> StorageBuilder:

    def builder(account: Account, category: Category) -> Storage:
        fake_storage.accounts.fetch_by_key = fake_coroutine(account)
        fake_storage.categories.fetch_by_key = fake_coroutine(category)
        fake_storage.operations.save = fake_coroutine(1)
        return fake_storage
    return builder