Skip to content

Commit cd5084a

Browse files
committed
[test_fileio.py] Change Test File Path to example.odml
Change to more robust way to access file location and use file from within test dir. Otherwise might not be found during local testing.
1 parent 8a58ce1 commit cd5084a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test_fileio.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ class TestTypes(unittest.TestCase):
1313
# TODO :- Write tests for JSONParser once it's completed.
1414

1515
def setUp(self):
16-
self.file = 'doc/example_odMLs/THGTTG.odml'
16+
self.dir_path = os.path.dirname(os.path.realpath(__file__))
17+
self.file = os.path.join(self.dir_path, 'resources', 'example.odml')
1718
# Do not allow anything to be printed on STDOUT
1819
self.captured_stdout = StringIO()
1920
sys.stdout = self.captured_stdout

0 commit comments

Comments
 (0)