Changeset 9459


Ignore:
Timestamp:
Jan 21, 2015, 4:15:30 PM (10 years ago)
Author:
steve
Message:

removing test_all.py from folders so that nosetests works from those folders

Location:
trunk/anuga_core/source/anuga
Files:
3 deleted
2 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/structures/test/test_inlet_operator.py

    r9442 r9459  
    1515
    1616from anuga.structures.inlet_operator import Inlet_operator
     17
     18import warnings
     19warnings.simplefilter("ignore")
    1720
    1821class Test_inlet_operator(unittest.TestCase):
     
    215218       
    216219        path = get_pathname_from_package('anuga.structures')
    217         filename1 = os.path.join(path, 'data', 'inlet_operator_test1.tms')
    218         filename2 = os.path.join(path, 'data', 'inlet_operator_test2.tms')
     220        filename1 = os.path.join(path, 'test', 'data', 'inlet_operator_test1.tms')
     221        filename2 = os.path.join(path, 'test', 'data', 'inlet_operator_test2.tms')
    219222
    220223        line1 = [[95.0, 10.0], [105.0, 10.0]]
     
    275278
    276279        path = get_pathname_from_package('anuga.structures')
    277         filename1 = os.path.join(path, 'data', 'inlet_operator_test1.tms')
    278         filename2 = os.path.join(path, 'data', 'inlet_operator_test2.tms')
     280        filename1 = os.path.join(path, 'test', 'data', 'inlet_operator_test1.tms')
     281        filename2 = os.path.join(path, 'test', 'data', 'inlet_operator_test2.tms')
    279282
    280283        line1 = [[95.0, 10.0], [105.0, 10.0]]
  • trunk/anuga_core/source/anuga/utilities/test/test_system_tools.py

    r9437 r9459  
    1717# I'm trying to keep this file general, so it works for EQRM and ANUGA
    1818# EQRM also uses this file, but has a different directory structure
    19 from system_tools import *
     19from anuga.utilities.system_tools import *
    2020
    2121class Test_system_tools(unittest.TestCase):
     
    123123        """
    124124
    125         # Get path where this test is run
    126         # I'm trying to keep this file general, so it works for EQRM and ANUGA
    127         path, tail = split(__file__)
    128         if path == '':
    129             path = '.' + sep
    130 
    131         filename = path + sep + '..' + sep + 'data' + sep + 'crc_test_file.png'
     125
     126           
     127        path = get_pathname_from_package('anuga.utilities')       
     128               
     129        filename = os.path.join(path, 'test', 'data', 'crc_test_file.png')
     130
     131
    132132
    133133        ref_crc = 1203293305 # Computed on Windows box
Note: See TracChangeset for help on using the changeset viewer.