Ignore:
Timestamp:
06/06/12 11:39:29 (8 years ago)
Author:
mnagni
Message:

Other improvement on how SA alchemy session is managed (infoDB)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/src/libs/migration/tests/migrationprocess.py

    r8325 r8326  
    66from unittest import TestCase 
    77from libs.commons_db import DbManager 
    8 from libs.migration.MigrationEPB import MigrationEPB, MigrationEPBFactory 
     8from libs.migration.MigrationEPB import MigrationEPBFactory 
    99from libs.migration.processor.loadResources import LoadResources 
    1010from libs.migration.db.classes import MigrationObject 
    1111from libs.migration.processor.commons import DO_BADC, DS_pUBLISHED, DS_PUBLISHED 
    12 from MolesManager.moles3epb import Moles3EPB, Moles3EPBFactory 
     12from MolesManager.moles3epb import Moles3EPBFactory 
    1313from libs.migration.processor.migrationProcess import MigrationProcess 
    1414from testconfig import MIGRATION_DB_CONNECTION,\ 
    1515    MIGRATION_DB_SCRIPT, MOLES3_DB_SCRIPT, MOLES3_DB_CONNECTION, INFO_DB_CONNECTION  
    16 from libs.migration.InfodbEPB import InfodbEPB 
     16from libs.migration.InfodbEPB import InfodbEPBFactory 
    1717from MolesManager.settings import EVENTS_DB 
    1818from libs.migration.client import EPBRepo 
     
    3434        #infoDB = DbManager(INFO_DB_CONNECTION, sql_echo=True) 
    3535        infoDB = DbManager(INFO_DB_CONNECTION)         
    36         InfodbEPB.overrrideDBManager(infoDB) 
     36        infoFactory = InfodbEPBFactory(infoDB) 
    3737         
    3838        moles3Factory = Moles3EPBFactory(molesDB) 
     
    4141        EPBRepo.moles3EPB = moles3Factory.createMoles3EPB()  
    4242        EPBRepo.migrationEPB = migrationFactory.createMigrationEPB() 
    43          
     43        EPBRepo.infodbEPB = infoFactory.createMigrationEPB() 
     44 
    4445        lr = LoadResources() 
    4546        ex = lr.process() 
     
    7172            print e 
    7273        #self._dropAllTables() 
    73          
     74 
     75    """         
    7476    def _dropAllTables(self): 
    7577        session = Moles3EPB.getNewMolesSession() 
     
    8183        session.commit() 
    8284        session.close()         
     85    """     
    8386         
    8487         
    85          
Note: See TracChangeset for help on using the changeset viewer.