<reponame>cdoebler1/AIML2<filename>test/programytest/storage/stores/logger/test_engine.py
import unittest
import unittest.mock

from programy.storage.stores.logger.config import LoggerStorageConfiguration
from programy.storage.stores.logger.engine import LoggerStorageEngine
from programytest.storage.test_utils import StorageEngineTestUtils


class LoggerStorageEngineTests(StorageEngineTestUtils):

    def test_init_with_configuration(self):
        config = unittest.mock.Mock
        engine = LoggerStorageEngine(config)
        self.assertIsNotNone(engine)
        self.assertIsNotNone(engine.configuration)

    def test_conversations(self):
        config = LoggerStorageConfiguration()
        engine = LoggerStorageEngine(config)
        engine.initialise()
        self.conversation_asserts(storage_engine=engine, visit=False)
