Ignore:
Timestamp:
15/12/08 14:23:40 (12 years ago)
Author:
cbyrom
Message:

Improve test suite, allowing referenced artefacts to be properly set
up and removed before and after tests + set global logging + adjust
file references + add required data files + simplify and fix some tests.

File:
1 edited

Legend:

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

    r4628 r4641  
    1919DBCONFIG_FILE = "exist.config" 
    2020 
    21 TEST_GRANULITE = '..\\testdata\\example.granulite' 
     21TEST_GRANULITE = '../testdata/example.granulite' 
    2222GRANULITE_TITLE = 'this is a new test granulite' 
    2323GRANULITE_TIME_AXIS = 'time0' 
     
    5959title = 'this is a test granulite' 
    6060 
    61 datasetID = 'famous_control_month' 
     61datasetID = 'famous_control_month_test_file' 
    6262 
    6363id = 'tag:localhost:5000,2008-09-17:/view/badc.nerc.ac.uk__ATOM__' + datasetID 
     
    6565atomName = 'http://localhost:5000/view/badc.nerc.ac.uk__ATOM__' + datasetID 
    6666 
    67 name = 'famous_control_month.atom' 
     67name = datasetID + '.atom' 
    6868 
    6969VTD = VTD() 
     
    8282        '<link href="http://badc.nerc.ac.uk/a-real-wms-endpoint" rel="http://vocab.ndg.nerc.ac.uk/term/P201/1/GCMDU026" title="WMS"/>' + \ 
    8383        '<link href="http://badc.nerc.ac.uk/alternate" rel="http://vocab.ndg.nerc.ac.uk/term/C110/6/GD" title="alternate page"/>' + \ 
    84         '<link href="' + logo + '" title="' + VTD.TERM_DATA[VTD.LOGO_TERM].title + '" rel="http://vocab.ndg.nerc.ac.uk/term/C110/6/GD"/>' + \ 
     84        '<link href="' + logo + '" title="' + VTD.TERM_DATA[VTD.LOGO_TERM].title + '" rel="http://vocab.ndg.nerc.ac.uk/term/C110/6/GD/Logo"/>' + \ 
    8585        '<author><name>Tiddeman, David</name><uri>www.cb.org</uri></author>' + \ 
    8686        '<contributor><name>Brian Bandy</name><uri>www.cb.org</uri></contributor>' + \ 
     
    101101        '<published>2008-06-17T10:15:19</published>' + \ 
    102102        '<moles:temporalRange>' + T1 + '/' + T2 + '</moles:temporalRange>' + \ 
    103         '<georss:where><gml:Envelope><gml:lowerCorner>' + minX + ' ' + maxX + '</gml:lowerCorner><gml:upperCorner>' + minY + ' ' + maxY + '</gml:upperCorner></gml:Envelope></georss:where>' + \ 
     103        '<georss:where><gml:Envelope><gml:lowerCorner>' + minX + ' ' + minY + '</gml:lowerCorner><gml:upperCorner>' + maxX + ' ' + maxY + '</gml:upperCorner></gml:Envelope></georss:where>' + \ 
    104104    '</entry>' 
    105105 
Note: See TracChangeset for help on using the changeset viewer.