def setUp(self): # This test needs the privileges of rosettaadmin (to update # TranslationMessages) but it also needs to set up test conditions # which requires other privileges. switch_dbuser('postgres') super(TestMigrateCurrentFlag, self).setUp(user='******') self.migrate_process = MigrateCurrentFlagProcess(self.layer.txn)
def main(self): fixer = MigrateCurrentFlagProcess(self.txn, self.logger) fixer.run()