def test_migration(self): print '=== Test migration ===' dbFiles = glob.glob( os.path.join(os.path.dirname(os.path.realpath(__file__)), 'database_*.db3')) for dbFile in dbFiles: dbVersion = re.search('.*database_(.*)\.db3', dbFile).group(1).replace('_', '.') print 'Test migration from database version ' + dbVersion + '...' if self.serverProcess: yadomsServer.stop(self.serverProcess) database.deployFromPath(dbFile) self.checkMigrationOk()
def tearDown(self): self.browser.close() yadomsServer.stop(self.serverProcess)