def test_postgres(self, fake_db_api): settings = { 'dbname': 'flexecution', 'tablename': 'flexecution', 'winners_table': 'winners', } mock_config = get_mock_config(logger_type=Constants.POSTGRES_DATABASE_LOGGER, settings = settings) logger_factory = LoggerFactory(mock_config) logger = logger_factory.get_logger() assert type(logger) == loggers.PostgresDatabaseLogger
def test_csv(self): mock_config = get_mock_config(logger_type=Constants.CSV_LOGGER) logger_factory = LoggerFactory(mock_config) logger = logger_factory.get_logger() assert type(logger) == loggers.CsvLogger
def test_in_memory(self): mock_config = get_mock_config() logger_factory = LoggerFactory(mock_config) logger = logger_factory.get_logger() assert type(logger) == loggers.InMemoryLogger