Ignore:
Timestamp:
23/02/09 09:31:17 (11 years ago)
Author:
cbyrom
Message:

Various tidy ups and fixes to the test codebase - including the removal
of uneccesary files + simplify the test constants.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ndgCommon/trunk/ndg/common/unittests/testconstants.py

    r5000 r5012  
    1616import os, datetime 
    1717 
    18 BASE_DIR = 'unittests' 
    19  
    2018def getTestDataDir(dir): 
    2119    if os.path.exists(dir): 
     
    3937TEST_FILE_PATH = TEST_COLLECTION_PATH + '/' + TEST_FILE_NAME 
    4038 
    41 EXIST_DB = 'chinook.badc.rl.ac.uk' 
    42 #EXIST_DB = 'localhost' 
     39# this variable adjusts what eXist DB is used to run the tests against 
     40# - whilst the tests do clean up after themselves, it's probably best not to 
     41# run tests using a production environment DB! 
     42#EXIST_DB = 'chinook.badc.rl.ac.uk' 
     43EXIST_DB = 'localhost' 
    4344PG_DBCONFIG_FILE = TEST_DATA_DIR + 'pg.config' 
    4445EXIST_DBCONFIG_FILE = TEST_DATA_DIR + 'exist.config' 
     
    6970 
    7071INVALID_NDG_URL = 'badc.nerc.ac.uk__NDG-B1__dataent_hadisstBLAHH' 
    71 VALID_DISCOVERY_URL = 'http://ndgbeta.badc.rl.ac.uk/view/' + VALID_NDG_URL 
    72 VALID_RETRIEVE_URL = 'http://ndgbeta.badc.rl.ac.uk/retrieve/' + VALID_NDG_URL 
     72VALID_DISCOVERY_URL = '/view/' + VALID_NDG_URL 
     73VALID_RETRIEVE_URL = '/retrieve/' + VALID_NDG_URL 
    7374INVALID_URL = 'http://invalid.blah.com' 
    7475VALID_URL = 'http://www.google.co.uk' 
    75 VALID_DISCOVERY_URL2 = 'http://ndgbeta.badc.rl.ac.uk/view/badc.nerc.ac.uk__ATOM__famous_control_month_test_file' 
     76VALID_DISCOVERY_URL2 = '/view/badc.nerc.ac.uk__ATOM__famous_control_month_test_file' 
    7677 
    7778VALID_REPOSITORY = "chinook.badc.rl.ac.uk" 
Note: See TracChangeset for help on using the changeset viewer.