Ignore:
Timestamp:
06/03/09 14:48:47 (11 years ago)
Author:
spascoe
Message:

Moved tests back out of the package hierarchy. They are now not
included in the egg but can be run from a checkout or a
distribution directory created with "easy_install -eb . nappy"

To run the tests do "python setup.py test" or "nosetests" from the
checkout.

Location:
nappy/branches/nappy-eggable/tests
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • nappy/branches/nappy-eggable/tests/test_na_file_2110.py

    r3628 r5072  
    1212import sys 
    1313 
    14 # Import local modules 
    15 base_dir = os.environ.get("NAPPY_BASE_DIR", "../..") 
    16 sys.path.append(base_dir) 
    17  
    1814import nappy 
    1915import nappy.utils.compare_na 
     16 
     17here = os.path.dirname(__file__) 
     18data_files = os.path.join(here, '../data_files') 
     19test_outputs = os.path.join(here, '../test_outputs') 
    2020 
    2121class NAFile2110_TestCase(unittest.TestCase): 
    2222 
    2323    def setUp(self): 
    24         self.infile = os.path.join(base_dir, "data_files", "2110.na") 
    25         self.outfile = os.path.join(base_dir, "test_outputs", "test_2110.na") 
    26         self.out_csv = os.path.join(base_dir, "test_outputs", "test_2110.csv") 
    27         self.out_csv_annotated = os.path.join(base_dir, "test_outputs", "test_2110_annotated.csv") 
     24        self.infile = os.path.join(data_files, "2110.na") 
     25        self.outfile = os.path.join(test_outputs, "test_2110.na") 
     26        self.out_csv = os.path.join(test_outputs, "test_2110.csv") 
     27        self.out_csv_annotated = os.path.join(test_outputs, "test_2110_annotated.csv") 
    2828        self.fin = nappy.openNAFile(self.infile) 
    2929        self.fin.readData() 
Note: See TracChangeset for help on using the changeset viewer.