Ignore:
Timestamp:
18/04/12 22:27:24 (8 years ago)
Author:
mnagni
Message:

Complete - # 22386: CEDA Observation - title
 http://team.ceda.ac.uk/trac/ceda/ticket/22386

File:
1 edited

Legend:

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

    r8217 r8254  
    1212from logging import StreamHandler 
    1313from test_utils import createObservationCollection, createObservation, createProject 
     14from testconfig import TESTMOLES3_DB_CONNECTION 
     15from ea_model.ceda_metadatamodel.ceda_observationcollection.ceda_observationcollection import CEDA_ObservationCollection 
    1416from ea_model.moles3_4.observationcollection.mo_observationcollection import MO_ObservationCollection 
    1517 
     
    1921    def setUp(self):     
    2022        Moles3EPBTest.molesDB = DbManager(MOLES3_DB_CONNECTION, MOLES3_DB_SCRIPT) 
     23        #Moles3EPBTest.molesDB = DbManager(TESTMOLES3_DB_CONNECTION, MOLES3_DB_SCRIPT) 
    2124        Moles3EPB.overrrideDBManager(Moles3EPBTest.molesDB) 
    2225        self._initSearchIndexes(Moles3EPBTest.molesDB)         
     
    3033 
    3134    def runTest(self): 
    32         #self.checkExtractCollectionIdentifierByTitle()    
    33         #self.checkExtractObservationByTitleKeywords()  
     35        self.checkExtractCollectionIdentifierByTitle()    
     36        self.checkExtractObservationByTitleKeywords()  
    3437        self.checkExtractProjectObservationCollections() 
     38        #self.checkExtractObservationCollectionsForObservation() 
     39 
     40    def checkExtractObservationCollectionsForObservation(self): 
     41        session = Moles3EPB.getNewMolesSession(); 
     42        #coll = session.query(CEDA_ObservationCollection). \ 
     43        #    join(MO_ObservationCollection).join(MO_ObservationCollection.member) 
     44        coll = session.query(CEDA_ObservationCollection) 
     45        colls = coll.all() 
     46        print colls 
    3547 
    3648    def checkExtractCollectionIdentifierByTitle(self): 
Note: See TracChangeset for help on using the changeset viewer.