Ignore:
Timestamp:
16/12/08 11:24:05 (11 years ago)
Author:
cbyrom
Message:

Create new class, testUtils, to handle various common test activities
and to make re-use of eXist client across different codebases easier -
due to problems with absolute references to the required config file
in the testconstants module. Refactor test suite to use.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exist/trunk/python/ndgutilstests/testconstants.py

    r4651 r4655  
    1414 
    1515from ndgUtils.vocabtermdata import VocabTermData as VTD 
    16 import ndgUtils.lib.existdbclient as dbc 
    17 from ndgUtils.models.Atom import Atom 
    1816import os 
    1917 
     
    157155              '/db/moles_support/granuleAtom/famous_control_month_granule.moles'] 
    158156 
    159 client = dbc.eXistDBClient(configFile = DBCONFIG_FILE, setUpDB = True) 
    160  
    161 def createAtom(content): 
    162     atom = Atom(VTD.GRANULE_TERM) 
    163     atom.fromString(content) 
    164     return atom 
    165  
    166 def createAtomInEXist(content): 
    167     atom = createAtom(content) 
    168     return client.createAtomInExist(atom) 
    169  
Note: See TracChangeset for help on using the changeset viewer.