# ## if __name__ == '__main__': # Parse arguments from command line parser = argparse.ArgumentParser( description='TranslationMatcher is a python app to ' + 'reconcile different translations of the same movie in ' + 'a MovieDiversity db.') parser.add_argument('--dbfile', '-db', required=True, help='The sqlite db file to be used.') parser.add_argument( '--logLevel', '-log', required=False, choices=['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'], help='The level of output for logging. Defaults to INFO.') args = parser.parse_args() # Init the logging system movieLogger.MovieLoggger().initLogger(level=args.logLevel) T = TranslationMatcher(dbfile=args.dbfile) T.logger.info("Populating translation table in : %s", args.dbfile) T.reconcileAllTitles() T.logger.info("End run.")
def tearDown(self): # for cleaning, no need to stay at DEBUG level movieLogger.MovieLoggger().resetLoggingLevel('INFO') self.util.cleanUpTestData() movieLogger.MovieLoggger().resetLoggingLevel('DEBUG') unittest.TestCase.tearDown(self)
def setUpClass(cls): super(testSource, cls).setUpClass() movieLogger.MovieLoggger().initLogger('DEBUG')
def setUpClass(cls): super(testPropertiesReader, cls).setUpClass() movieLogger.MovieLoggger().initLogger('INFO')
def setUpClass(cls): super(testMovieDbClasses, cls).setUpClass() movieLogger.MovieLoggger().initLogger('DEBUG')
def setUpClass(cls): super(testTimdb, cls).setUpClass() movieLogger.MovieLoggger().initLogger('INFO')