Ignore:
Timestamp:
Dec 5, 2017 10:31:07 AM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
5bb05a4
Parents:
3053a4a
git-author:
Stuart Prescott <llimeht@…> (12/05/17 10:31:07)
git-committer:
Paul Kienzle <pkienzle@…> (12/05/17 10:31:07)
Message:

Make tests work from any directory and functional without special runner script (#124)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/sasdataloader/test/utest_generic_file_reader_class.py

    r3648cbf rf53d684  
    1414 
    1515 
     16def find(filename): 
     17    return os.path.join(os.path.dirname(__file__), filename) 
     18 
     19 
    1620class GenericFileReaderTests(unittest.TestCase): 
    1721 
    1822    def setUp(self): 
    1923        self.reader = TestFileReader() 
    20         self.bad_file = "ACB123.txt" 
    21         self.good_file = "123ABC.txt" 
     24        self.bad_file = find("ACB123.txt") 
     25        self.good_file = find("123ABC.txt") 
    2226 
    2327    def test_bad_file_path(self): 
Note: See TracChangeset for help on using the changeset viewer.